Help witht his cmd
#1

my cmd is working fine like this but those errors are so annoying - i tried many other way like robskill before amount

but it only works when i do it like this but the warnings is soo annoying can someone help out

Код:
dcmd_setrob(playerid,params[])
{
	new ID;
	new amount;
	new string[128];
    if(sscanf(params,"ui",ID,RobSkill))
	{
	    SendClientMessage(playerid,COLOR_ERROR,"USAGE: /setrob (Player Name/ID) (Amount)");
	    return 1;
	}
	if(IsSpawned[ID] == 0)
	{
	    format(string,sizeof(string),"%s(%d) is must be alive and spawned in order to set their robskill.",PlayerName(ID),ID);
	    SendClientMessage(playerid,COLOR_ERROR,string);
	    return 1;
	}
	if(!IsPlayerConnected(ID))
	{
	    format(string,sizeof(string),"The Player ID (%d) is not connected to the server.",ID);
	    SendClientMessage(playerid,COLOR_ERROR,string);
	    return 1;
	}
	amount = RobSkill[ID];
	format(string,sizeof(string),"[ADMIN Robskill] Administrator has given you Robskill. Amount: %d.",RobSkill);
	SendClientMessage(ID,COLOR_ADMIN,string);

	format(string,sizeof(string),"[ADMIN Robskill] You have given %s(%d) Robskill. Amount: %d.",PlayerName(ID),ID,RobSkill);
	SendClientMessage(playerid,COLOR_ADMIN,string);

	format(string,sizeof(string),"9[ADMIN Robskill] Administrator %s(%d) has set %s(%d) robskill. Amount: %d.",PlayerName(playerid),playerid,PlayerName(ID),ID,RobSkill);
	IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
	return 1;
}
Reply
#2

and the waring/erros was ..... ?
Reply
#3

FIXED NVM sorry wasting yall time
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)