Server Crash with AFK command
#8

The code is really messed up, it makes no sense at all.
Код:
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerName(playerid, AFKName, sizeof(AFKName));
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.
Reply


Messages In This Thread
Server Crash with AFK command - by Eymeric69 - 05.05.2016, 09:31
Re: Server Crash with AFK command - by Eymeric69 - 05.05.2016, 09:52
Re: Server Crash with AFK command - by Nin9r - 05.05.2016, 10:01
Re: Server Crash with AFK command - by Eymeric69 - 05.05.2016, 10:05
Re: Server Crash with AFK command - by Nin9r - 05.05.2016, 10:09
Re: Server Crash with AFK command - by Eymeric69 - 05.05.2016, 10:11
Re: Server Crash with AFK command - by Nin9r - 05.05.2016, 10:14
Re: Server Crash with AFK command - by Sjn - 05.05.2016, 10:17
Re: Server Crash with AFK command - by Sew_Sumi - 05.05.2016, 10:48
Re: Server Crash with AFK command - by Dayrion - 05.05.2016, 10:50

Forum Jump:


Users browsing this thread: 1 Guest(s)