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



IsPlayerinarea Problem - Kyle - 11.03.2010

I have this code

public IsPlayerInArea(playerID, Float:data[4])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerID, X, Y, Z);
if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3])
{
return 1;
}
return 0;
}





But im getting

Error 035: argument type mismatch (argument 2)

with this code below

if(IsPlayerInArea(i,235.06, 237.90, 1801.49 ,1832.06))