11.03.2010, 16:31
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))
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))