29.10.2011, 20:18
Hi,
I have this code to create an object at a player's position:
And then this to check if any player is at that position
But it always says the player is not in range of point even if it is.
I have this code to create an object at a player's position:
pawn Код:
GetPlayerPos(playerid, X,Y,Z);
CreateObject(objectid, X, Y, X, 90.0, 0.0, 0.0);
pawn Код:
for(new c = 0; c < MAX_OBJECTS; c++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, Object[c][X], Object[c][Y], Object[c][Z])
{
//code
}

