SA-MP Forums Archive
Kick! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Kick! (/showthread.php?tid=226420)



Kick! - rubygta - 15.02.2011

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.



Re: Kick! - Ash. - 15.02.2011

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

pawn Код:
Kick(id);



Re: Kick! - rubygta - 15.02.2011

No way.. Thank you