Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Illegal picture Id number '0' plz help asap plzzzzzzzzz
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
hassansyr




PostPosted: Tue May 24, 2016 9:14 pm   Post subject: Illegal picture Id number '0' plz help asap plzzzzzzzzz

Illegal picture Id number '0' plz help asap plzzzzzzzzz

here is the code:







var hi:int

hi:= Pic.FileNew("me.bmp")

put " Hello user "

delay(500)

put " This is a ' Choose your own adventure story' assignment"

delay(500)

put " This program will give you a plot and depending on your decisions, you will face different outcomes. "

delay(500)

put " Please choose right and thoughtful decisions. Enjoy "


Pic.Draw(hi, 0,0 ,picCopy )
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Sun May 29, 2016 11:45 am   Post subject: RE:Illegal picture Id number \'0\' plz help asap plzzzzzzzzz

This error message means your picture did not load for some reason. Your code looks sound, so it must be something else. Is your image file in the same folder as your code? If not, there's your problem.

Turing sometimes doesn't play nice with newer versions of Windows. Try running Turing as Administrator.

Some versions of Windows may hide the file extension of your files. If you renamed your image, you may have accidentally added an extra extension, making it 'me.bmp.bmp'. In the Explorer settings should be an option to show file extensions.

Hopefully that helps.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: