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

Username:   Password: 
 RegisterRegister   
 HELP FAST Syntax error at 'if'. expected ')'
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Robotkubo




PostPosted: Sun Apr 17, 2016 9:44 pm   Post subject: HELP FAST Syntax error at 'if'. expected ')'

Im making a game, if i dont get a response soon it wont matter,

Input.KeyDown (chars
if chars (KEY_ENTER) then
story
% proceeds to the story procedure
elsif chars ('i') then
instructions
% proceeds to the options procedure
elsif chars ('m') then
meme1
% proceeds to the instructions procedure
elsif chars ('z') then
quit
% quits the program
end if


it should work but says syntax error at 'if'. expected ')' I HAVE NO IDEA what this is, it only highlights the first if and that's it. PLEASE HELP
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Sun Apr 17, 2016 11:38 pm   Post subject: RE:HELP FAST Syntax error at \'if\'. expected \')\'

It means that somewhere, probably close to the highlighted line, you're missing a ). It shouldn't take you more than thirty seconds to find.
DeoChomp




PostPosted: Tue Nov 08, 2016 1:48 pm   Post subject: RE:HELP FAST Syntax error at \'if\'. expected \')\'

Its at Input.KeyDown, yout put (chars
Its supposed to be (chars)
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  [ 3 Posts ]
Jump to:   


Style:  
Search: