SA-MP Forums Archive
A wrong error - 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)
+--- Thread: A wrong error (/showthread.php?tid=660862)



A wrong error - Calinut200 - 15.11.2018

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




Re: A wrong error - aristoffky - 15.11.2018

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

'Kick(id);'


Re: A wrong error - StRaphael - 15.11.2018

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