28.04.2012, 11:08
i created command work on player with name i did this line
if(isnull(params,ammount);
return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
but its stay give me error on the the thing ammount i did new ammount;
Here is full command
if(isnull(params,ammount);
return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
but its stay give me error on the the thing ammount i did new ammount;
Here is full command
pawn Код:
IRCCMD:setrob(botid, channel[], user[], host[], params[])
{
new string[128], ammount;
if(!IRC_IsHalfop(botid, channel, user) && !IRC_IsOp(botid, channel, user) && !IRC_IsAdmin(botid, channel, user))
return IRC_Say(gGroupID,channel,"02You can't use this commands");
if(isnull(params,ammount); <----- // Error Line
return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
format(string,sizeof(string), ": Server IRC Has Setted Your RobSkills To %s",ammount);
SendClientMessage(ID,COLOR_RED,string);
format(string, sizeof(string), "%s has had thier RobSkills setted to by IRC %s", params, ammount, user);
IRC_GroupSay(gGroupID,channel,string);
format(string,sizeof(string),"You have setted %s RobSkills to On IRC.",params,ammount);
IRC_Say(gGroupID,channel,string);
dUserSetINT(params).("robrank",ammount);
return 1;
}