Jump to content

Scripting error


TheNick93

Recommended Posts

I am doing the my second scrip tutorial on cswiki

but 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

EndIf

End

 

Can someone help? :confused:

Link to comment
Share on other sites

You need to add a Short controlvar thing in the script, like this

 

ScriptName RiddleBoxScript

 

Short controlvar

 

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

EndIf

End

 

I think that should fix it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...