15.05.2014, 21:47
Ok so I been recently getting a "u" bug. I made a temporary fix for this.
However sscanf(); is made for strings. How do I GetPlayerName? Ex: Kev_Klipz not Kev Klipz cause then sscanf might return other players with the name Kev.
Код:
new named[MAX_PLAYER_NAME], idfix, kickid; kickid = playerid; sscanf(kickid, "u", idfix); if(idfix == INVALID_PLAYER_ID) { SendClientMessageEx(playerid, COLOR_WHITE, "Server: Sorry you have been kicked due to a bug, relog."); SetTimerEx("KickEx", 1000, 0, "i", kickid); return 1; }