$specialmode = 0;function serverCmdSpecialmode(%client){if ($specialmode==0){messageAll('', "Special Mode has been turned \c3ON.");$specialmode = 1;}else//Problem{messageAll('', "Special mode has been turned \c3OFF.");$specialmodet = 0;} //Comes up with syntax error here - I have checked
Why would that be relevant? Anyway, here it is:$specialmode = 0;function serverCmdSpecialmode(%client){if ($specialmode==0){messageAll('', "Special Mode has been turned \c3ON.");$specialmode = 1;}else//Problem{messageAll('', "Special mode has been turned \c3OFF.");$specialmodet = 0;} //Comes up with syntax error here - I have checked }
Maybe the fact that you didn't close the function would be a problem?
It is closed, theres a bracket right above the one you added.
That wasn't in my script, i must have accidentally put it there when posted. OK, problem solved.