17.11.2014, 07:03
Hi fellas,so this is my kick command
Error is
Line 494 is
i really don't know what the problem is.For those who know,kindly help me out,can't figure out what the problem is actually.
Код:
CMD:kick(playerid,params[]) { new id,string[128],PlayerName[MAX_PLAYER_NAME],reason[100]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, -1,"{FF0000}You are not authorized to use this command."); if(sscanf(params,"us[100]",id,reason)) return SCM(playerid, -1,"{FF0000}/kick [ID]"); GetPlayerName(playerid, PlayerName,sizeof(PlayerName)); if(id == INVALID_PLAYER_ID) return SCM(playerid, -1,"{FF0000}Player is not connected."); if(playerid == id) return SCM(playerid, -1,"{FF0000}You cannot kick yourself,fool"); format(string,sizeof(string),"{FF0000}Player %s has been kicked by Admin %s for %s",PlayerName,PlayerName,reason); SendClientMessageToAll(COL_WHITE,string); Kick(id); return 1; }
Код:
pwn(494) : error 035: argument type mismatch (argument 1)
Код:
SendClientMessageToAll(COL_WHITE,string);