Help me, please /a chat
#3

Damn thanks, noticed that I got the same problem on this command:
pawn Code:
CMD:kick(playerid, params[])
{
    new id, sendername[MAX_PLAYER_NAME], string[128], reason[128];
    if(!PlayerInfo[playerid][pAdmin] >= 1) return SCM(playerid, COLOR_GREY,"  you are not authorized to use this command");
    if(sscanf(params,"us[128]",id, reason)) return SCM(playerid, COLOR_WHITE,"USAGE: /kick [playerid/partofname] [reason]");
    if(id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_WHITE,"Player is not connected");
    else
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "AdmCmd: %s was kicked by %s, reason: %s", id, sendername, reason);
        SendClientMessageToAll(COLOR_LIGHTRED,string);
        Kick(id);
    }
    return 1;
}
But I think I can't check if is null because there are 2 parameters? How to make here?
Reply


Messages In This Thread
Help me, please /a chat - by Jafet_Macario - 24.08.2011, 10:19
Re: Help me, please /a chat - by =WoR=Varth - 24.08.2011, 10:32
Re: Help me, please /a chat - by Jafet_Macario - 24.08.2011, 10:39
Re: Help me, please /a chat - by =WoR=Varth - 24.08.2011, 10:48
Re: Help me, please /a chat - by Jafet_Macario - 24.08.2011, 11:06

Forum Jump:


Users browsing this thread: 1 Guest(s)