SA-MP Forums Archive
if statement help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: if statement help (/showthread.php?tid=246781)



if statement help - dowster - 05.04.2011

i cant seem to get it to detect if the gate is open or shut, this is the code I'm using, it compiles OK but does nothing in-game. The problem is between lines 400 and 429, Thanks.


Re: if statement help - s0nic - 05.04.2011

Possibly these lines:
pawn Code:
if IsPlayerInRangeOfPoint(playerid, 5, 1544.6999511719, -1630.6999511719, 13.10000038147)
*then
{
Should be like this:
pawn Code:
if(IsPlayerInRangeOfPoint(playerid, 5, 1544.6999511719, -1630.6999511719, 13.10000038147))
{