05.05.2016, 10:17
The code is really messed up, it makes no sense at all.
Why getting the player's name twice? That's completely useless.
And, SetPlayerName(0xFFFFFF, string); You are using this function in a wrong way. Proper parameters for this function is SetPlayerName(playerid, const name[], len); If you are trying to set the player's color when they go afk, use SetPlayerColor instead. (Already answered by the guy above)
That's what happens when you just copy and paste other's script without knowing yourself how does it work.
Код:
GetPlayerName(playerid, Name, sizeof(Name)); GetPlayerName(playerid, AFKName, sizeof(AFKName));
And, SetPlayerName(0xFFFFFF, string); You are using this function in a wrong way. Proper parameters for this function is SetPlayerName(playerid, const name[], len); If you are trying to set the player's color when they go afk, use SetPlayerColor instead. (Already answered by the guy above)
That's what happens when you just copy and paste other's script without knowing yourself how does it work.

