A wrong error
#1

PHP код:
CMD:kick(playeridparams[])
{
    new 
idstring[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(idplayersizeof(player));
    
GetPlayerName(playeridusersizeof(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 017undefined symbol "kick"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Reply
#2

kick(id)'s uppercase letter needs to be respected.

'Kick(id);'
Reply
#3

Just turn kick(id); into Kick(id);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)