13.03.2015, 22:29
Do this:
PID is not yet present, and it's value by default is 0.
pawn Код:
//Reorder this:
GetPlayerName(pid, playername, sizeof(playername));
if(sscanf(params, "u", pid)) return SendClientMessage(playerid, -1, "Usage: /nodriving (player id)");
if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, Color_Red, "Player must be connected.");
//into this
if(sscanf(params, "u", pid)) return SendClientMessage(playerid, -1, "Usage: /nodriving (player id)");
if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, Color_Red, "Player must be connected.");
GetPlayerName(pid, playername, sizeof(playername));