TheNick93 Posted May 23, 2009 Share Posted May 23, 2009 I am doing the my second scrip tutorial on cswikibut when I try to save it says controlvar command is unreconized!!My script looks like ScriptName RiddleBoxScript Begin OnActivate If ( controlvar == 0 ) MessageBox "What is my name?. Sharp I am, kill, I do.What am I?" "Sword", "mace", "bow", "arrow" Set controlvar to 1 EndIfEnd Can someone help? :confused: Link to comment Share on other sites More sharing options...
xxXEvandarXxx Posted May 23, 2009 Share Posted May 23, 2009 You need to add a Short controlvar thing in the script, like this ScriptName RiddleBoxScript Short controlvar Begin OnActivateIf ( controlvar == 0 )MessageBox "What is my name?. Sharp I am, kill, I do.What am I?" "Sword", "mace", "bow", "arrow"Set controlvar to 1EndIfEnd I think that should fix it. Link to comment Share on other sites More sharing options...
TheNick93 Posted May 23, 2009 Author Share Posted May 23, 2009 Thank you so much that worked! :thanks: :thanks: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.