Kick!
#1

Hello! I've gone through this over and over again, and I can't really see the problem..
pawn Код:
COMMAND:kick(playerid, params[])
{
    new pname[MAX_PLAYER_NAME];
    new name[MAX_PLAYER_NAME];
    new id;
    new str[128];
    if(IsPlayerAdmin(playerid))
    {
        if (sscanf(params, "u", id)) return SendClientMessage(playerid, 0xB4B5B7FF, "USAGE: /kick <PLAYERID>");
        GetPlayerName(playerid, name, sizeof(name));
        GetPlayerName(id,pname, sizeof(pname));
        format(str, sizeof(str), "Administrator %s has kicked %s!", name, pname);
        SendClientMessageToAll(0xB4B5B7FF, str);
        kick(id);
    }
    return 1;
}
ERRORS:
pawn Код:
C:\Users\Ruby\Desktop\Pawno\pawno\Ruby.pwn(243) : error 017: undefined symbol "kick"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Errors.
Reply


Messages In This Thread
Kick! - by rubygta - 15.02.2011, 17:11
Re: Kick! - by Ash. - 15.02.2011, 17:13
Re: Kick! - by rubygta - 15.02.2011, 17:15

Forum Jump:


Users browsing this thread: 1 Guest(s)