#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
#2

"kick" should be have a beggining capital K - like so;

pawn Код:
Kick(id);
Reply
#3

No way.. Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)