Weird IsPlayerInArea Problem - 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: Weird IsPlayerInArea Problem (
/showthread.php?tid=83563)
Weird IsPlayerInArea Problem -
Yuryfury - 26.06.2009
Well I Have a DM area and I have a timer which does this
pawn Код:
if (!IsPlayerInArea(i, -110.0708, 127.6751, 1447.8772, 1608.9224))//with "!"
{
ResetPlayerWeapons(i);
}
The weird thing is that if I AM in that area my weapons get reset.
but when I change it too
pawn Код:
if (IsPlayerInArea(i, -110.0708, 127.6751, 1447.8772, 1608.9224))//no "!"
{
ResetPlayerWeapons(i);
}
It does not. The coords are all correct.
sorry, simple coordinate error
the IsPlayerInArea was set up weird: min_x,mas_x,min_y,max_y instead of the min_x,min_y,max_x,max_y