SA-MP Forums Archive
Pickup - 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: Pickup (/showthread.php?tid=604551)



Pickup - SteSte - 06.04.2016

I'm trying to create a weapon pickup but this error keeps showing, how do i fix it plz
F:\PVP Server\filterscripts\snipergame.pwn(63) : warning 215: expression has no effect


Re: Pickup - AndySedeyn - 06.04.2016

That's the result of having something like:

PHP код:
new variable == 1 
This is incorrect because it's not an assignment. The assignment operator is a single '=' and the equality operator is a double '=='.

https://sampwiki.blast.hk/wiki/Control_...ures#Operators


Re: Pickup - SteSte - 06.04.2016

Whoa thanks, its fixed, I never knew that