04.09.2013, 08:56
When i try to use my command:
It always says :"USAGE: /akill [playerid / Partofname]"
Server CMD:sscanf erorystem not intialised
I am using the latest version of sscanf !
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;
}
Server CMD:sscanf erorystem not intialised
I am using the latest version of sscanf !