30.10.2013, 16:10
You declared targetid and never assigned any value on it. So it's 0; therebefore you check if the player is not in range of the player with ID 0 position to return the error message.
And except that, you send the same message if the wanted level of the player with ID 0 is 0:
Assuming you wanted to write another message.
And except that, you send the same message if the wanted level of the player with ID 0 is 0:
pawn Код:
if(GetPlayerWantedLevel(targetid) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Error: There is no player in range of point");
}