15.11.2018, 20:09
PHP код:
CMD:kick(playerid, params[])
{
new id, string[256],player[MAX_PLAYER_NAME],user[MAX_PLAYER_NAME];
if(sscanf(params,"u", id)) return SendClientMessage(playerid,-1,"INFO:Foloseste /kick [NAME/ID]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Player is not connected.");
GetPlayerName(id, player, sizeof(player));
GetPlayerName(playerid, user, sizeof(user));
format(string,sizeof(string), "INFO: %s a primit kick de la Adminul %s ",player,user);
SendClientMessageToAll(-1,string);
kick(id);
return 1;
}
PHP код:
C:\Users\Calinacho\Desktop\port_513\gamemodes\mama.pwn(579) : error 017: undefined symbol "kick"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.