1. Re: Help With My Game of Black Jack

In my previous answer, I wrote:

for card = 1 to 52 do -- cards images will be in 1.bmp, 2,bmp, 3.bmp.....
 image = read_bitmap(sprintf("%d.bmp",card))  -- error here!
 deck = append(deck,image[2])

read_bitmap is expecting a quoted filename so you'll have to embed quotes:
image = read_bitmap(sprintf("\"%d.bmp\"",card)) -- or something, experiment
until it works ;)

Irv

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu