Error -> Pic was never allocated
Author |
Message |
MyPistolsIn3D
|
Posted: Thu May 20, 2004 5:47 pm Post subject: Error -> Pic was never allocated |
|
|
Why am I getting this error? Whats it mean? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Dan
|
Posted: Thu May 20, 2004 6:27 pm Post subject: (No subject) |
|
|
it means the value you are sending to the pic comand is ehtere not a pic or that pic was not loaded right. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
Pickles
|
Posted: Thu May 20, 2004 6:43 pm Post subject: ... |
|
|
code: | loop
cls
frenchplaney -= 5
missiley += 40
Pic.Draw (sky, 0, 0, picMerge)
Pic.Draw (frenchplane2, 100, frenchplaney, picMerge)
Pic.Draw (missile, 100, missiley, picCopy) %% this line here
View.Update
exit when missiley + 50 >= frenchplaney
end loop |
I think thats what you wanted, it looks like it hits him |
|
|
|
|
|
beedub
|
Posted: Thu May 20, 2004 8:10 pm Post subject: (No subject) |
|
|
generally the problem is that the pictures arent in the same directory as ur program. Also, you need to make sure the picture is a .bmp and that u spelled the name of the file correctly. |
|
|
|
|
|
Paul
|
Posted: Thu May 20, 2004 8:11 pm Post subject: (No subject) |
|
|
not so in 3.11, you could have that problem in 3.11 for no reason at all, and if u restart it, it usually works. |
|
|
|
|
|
MyPistolsIn3D
|
Posted: Fri May 21, 2004 2:44 pm Post subject: (No subject) |
|
|
Ya thx guys, problem was i forgot a "y" on "missiley". |
|
|
|
|
|
|
|