warning 215: expression has no effect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 215: expression has no effect (
/showthread.php?tid=414989)
warning 215: expression has no effect -
DLR - 11.02.2013
for ( new i = 0; i < MAX_PLAYERS; i++) {
speedo_status[i] == 1;
}
It highlights the bold bit. I've declared this variable earlier in the script as the following:
new speedo_status[MAX_PLAYERS];
AW: warning 215: expression has no effect -
roym899 - 11.02.2013
it has to be speedo_status[i] = 1;
Right now you compare instead of assign a value.
Re: warning 215: expression has no effect -
DLR - 11.02.2013
Ahh, I get ya. Thanks