Problem with sscanf
#1

When i try to use my command:
PHP код:
CMD:akill(playerid,params[])
{
    if(
sscanf(params,"u",ID)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /akill [playerid / Partofname]");
    if(!
IsPlayerConnected(ID)) return SendClientMessage(playerid,COLOR_RED,"ERROR: This user is not connected!");
    
GetPlayerName(playerid,Nam,sizeof(Nam));
    
GetPlayerName(ID,pname,sizeof(pname));
    
format(str,sizeof(str),"Administrator %s has killed you",Nam);
    
SendClientMessage(ID,COLOR_ORANGE,str);
    
format(str,sizeof(str),"You have admin killed %s",pname);
    
SendClientMessage(playerid,COLOR_ORANGE,str);
    
SetPlayerHealth(ID,0);
    return 
1;

It always says :"USAGE: /akill [playerid / Partofname]"
Server CMD:sscanf erorystem not intialised
I am using the latest version of sscanf !
Reply


Messages In This Thread
Problem with sscanf - by bustern - 04.09.2013, 08:56
Re: Problem with sscanf - by Misiur - 04.09.2013, 09:11
Re: Problem with sscanf - by FabianoC - 04.09.2013, 09:28
Re: Problem with sscanf - by Dragonsaurus - 04.09.2013, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)