07.10.2012, 04:44
pawn Code:
COMMAND:kick(playerid, params[])
{
new targetid[MAX_PLAYER_NAME], string[128];
if(PlayerInfo[playerid][pAdmin] >= 1)
if(sscanf(params, "ui", targetid)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /kick [playerid] [reason]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, "This player is not online.");
{
GetPlayerName(playerid, targetid, sizeof targetid);
format(string,sizeof string,"[OOC] %s: %s",targetid, string);
SendAdminMessage(COLOR_YELLOW,string);
Kick(targetid);
return 1;
}
}
error 035: argument type mismatch (argument 1)
and on Kick(targetid) line:
error 035: argument type mismatch (argument 1)