15.02.2011, 17:11
Hello! I've gone through this over and over again, and I can't really see the problem..
ERRORS:
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;
}
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.