|
Smithy Zeno
ownes 9 pet cacti
Join date: 3 Aug 2006
Posts: 52
|
11-22-2007 14:05
I know I'm making a stupid mistake, put here it goes. When I save the script it gives me a syntax error right at the last 'else if' statement. If I remove that, it works perfectly. Anyone know why 'two else if' statements won't work?
state start { state_entry() { llSetText("Please select one of the options on the menu to the right.", <1,1,1>, 1); llListen(9,"","",""); } listen(integer c,string n,key i,string m) { if(llToLower(m) == "object") { state object; } else if(llToLower(m) == "texture"); { state texture; } else if(llToLower(m) == "script") { state script; } } }
_____________________
-Smithy
|
|
Shyan Graves
Registered User
Join date: 10 Feb 2007
Posts: 52
|
11-22-2007 14:12
HI, remove the semicolon on this line else if(llToLower(m) == "texture"  ; change it to else if(llToLower(m) == "texture" this should do the trick Shyan
|
|
Smithy Zeno
ownes 9 pet cacti
Join date: 3 Aug 2006
Posts: 52
|
11-22-2007 14:40
Lol I feel stupid at a simple mistake like that, but thats for the help anyways!
_____________________
-Smithy
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
11-23-2007 08:11
Don't worry. We have all made that one;
|