OnPlayerKeyStateChange (problem 2)
#2

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:
pawn Код:
if(GetPlayerWantedLevel(targetid) == 0)
{
    SendClientMessage(playerid, COLOR_WHITE, "Error: There is no player in range of point");
}
Assuming you wanted to write another message.
Reply


Messages In This Thread
OnPlayerKeyStateChange (problem 2) - by AnonScripter - 30.10.2013, 16:06
Re: OnPlayerKeyStateChange (problem 2) - by Konstantinos - 30.10.2013, 16:10
Re: OnPlayerKeyStateChange (problem 2) - by AnonScripter - 30.10.2013, 16:13
Re: OnPlayerKeyStateChange (problem 2) - by Konstantinos - 30.10.2013, 16:16
Re: OnPlayerKeyStateChange (problem 2) - by AnonScripter - 30.10.2013, 16:24
Re: OnPlayerKeyStateChange (problem 2) - by Pottus - 30.10.2013, 16:29
Re: OnPlayerKeyStateChange (problem 2) - by AnonScripter - 30.10.2013, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)