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



Error ? - ShawnMiller1337 - 03.09.2012

Whats wrong with this ?

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, -783.8918,3780.3577,2254.1079 && Reeactors[playerid] = 0))



Re: Error ? - ZBits - 03.09.2012

What is the Error?


Re: Error ? - ShawnMiller1337 - 03.09.2012

pawn Код:
C:\Users\wner\Desktop\XF-RP(Win32)\gamemodes\EXE29.pwn(54413) : error 022: must be lvalue (non-constant)
C:\Users\wner\Desktop\XF-RP(Win32)\gamemodes\EXE29.pwn(54413) : warning 215: expression has no effect
C:\Users\wner\Desktop\XF-RP(Win32)\gamemodes\EXE29.pwn(54413) : error 001: expected token: ";", but found ")"
C:\Users\wner\Desktop\XF-RP(Win32)\gamemodes\EXE29.pwn(54413) : error 029: invalid expression, assumed zero
C:\Users\wner\Desktop\XF-RP(Win32)\gamemodes\EXE29.pwn(54413) : fatal error 107: too many error messages on one line



Re: Error ? - mkr - 03.09.2012

You're missing a closing parenthesis on IsPlayerInRangeOfPoint. Also, you should use == for comparison in the second part.

Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, -783.8918,3780.3577,2254.1079) && Reeactors[playerid] == 0)