| Blockland Forums > Modification Help |
| My scripting problems: 0 |
| << < (13/14) > >> |
| Amade:
Post the entire script. |
| Sammygood:
Why would that be relevant? Anyway, here it is: --- Code: ---$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 --- End code --- |
| Crysist:
$specialmode = 0; function serverCmdSpecialmode(%client) { if ($specialmode==0) { messageAll('', "Special Mode has been turned \c3ON."); $specialmode = 1; } else //Problem if ($specialmode==1) { messageAll('', "Special mode has been turned \c3OFF."); $specialmodet = 0; } //Comes up with syntax error here - I have checked |
| Pew446:
--- Quote from: Sammygood on June 11, 2010, 03:06:47 PM ---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 } --- End quote --- Maybe the fact that you didn't close the function would be a problem? |
| devildogelite:
--- Quote from: Pew446 on June 11, 2010, 09:54:15 PM ---Maybe the fact that you didn't close the function would be a problem? --- End quote --- It is closed, theres a bracket right above the one you added. |
| Navigation |
| Message Index |
| Next page |
| Previous page |