[Help]/kick
#1

I am getting these 3 errors:
pawn Код:
C:\Users\Nilanjay\Desktop\SERVER\gamemodes\16.pwn(301) : error 035: argument type mismatch (argument 1)
C:\Users\Nilanjay\Desktop\SERVER\gamemodes\16.pwn(303) : error 033: array must be indexed (variable "pID")
C:\Users\Nilanjay\Desktop\SERVER\gamemodes\16.pwn(306) : error 035: argument type mismatch (argument 1)
Code
pawn Код:
CMD:kick(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]:You need to an admin!");
    new pID[25];
    new reason[80];
    new string[128];
    new PlayerName[MAX_PLAYER_NAME], AdminName[MAX_PLAYER_NAME];
    GetPlayerName(pID, PlayerName, sizeof(PlayerName));//301
    GetPlayerName(playerid, AdminName, sizeof(AdminName));
    if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "[ERROR]:Invalid player id!");//303
    format(string, sizeof(string), "[SERVER]: %s has been kicked by %s. Reason: %s", PlayerName, AdminName, reason);
    SendClientMessageToAll(COLOR_RED, string);
    Kick(pID);//306
    return 1;
}
Reply


Messages In This Thread
[Help]/kick - by nilanjay - 13.05.2014, 13:35
Re: [Help]/kick - by Aerotactics - 13.05.2014, 13:39
Re: [Help]/kick - by Konstantinos - 13.05.2014, 13:40
Re: [Help]/kick - by nilanjay - 13.05.2014, 13:47
Re: [Help]/kick - by Madd92 - 13.05.2014, 13:50
Re: [Help]/kick - by Tingesport - 13.05.2014, 14:28

Forum Jump:


Users browsing this thread: 2 Guest(s)