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



Help Needed - UnknownGamer - 05.10.2012

pawn Код:
if (!IsPlayerInRangeOfPoint(playerid, 6,255.3,77.4,1003.6) || !IsPlayerInRangeOfPoint(playerid, 6,223.6328,186.8251,1003.0313) || !IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "* You are not in a locker-room!");
                    return 1;
                }
Causing Pawn Compiler to crash, any-idea what is wrong?


Re: Help Needed - doreto - 05.10.2012

You miss the range

(playerid, Float:range, Float, Float:y, Float:z)

Example from your first post

!IsPlayerInRangeOfPoint(playerid, 6,255.3,77.4,1003.6)

!IsPlayerInRangeOfPoint(playerid, 10,6,255.3,77.4,1003.6) - 10 its the range


Re: Help Needed - UnknownGamer - 05.10.2012

So am I just changing to:

!IsPlayerInRangeOfPoint(playerid, 10,6,255.3,77.4,1003.6)