help with IRC
#1

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

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;
}
Reply


Messages In This Thread
help with IRC - by ColdRain - 28.04.2012, 11:08
Re: help with IRC - by Vince - 28.04.2012, 12:02
Re: help with IRC - by ColdRain - 28.04.2012, 13:01
Re: help with IRC - by TheArcher - 28.04.2012, 13:16
Re: help with IRC - by Niko_boy - 28.04.2012, 13:16
Re: help with IRC - by TheArcher - 28.04.2012, 13:23
Re: help with IRC - by Niko_boy - 28.04.2012, 13:25
Re: help with IRC - by TheArcher - 28.04.2012, 13:27
Re: help with IRC - by Niko_boy - 28.04.2012, 13:29
Re: help with IRC - by TheArcher - 28.04.2012, 13:32

Forum Jump:


Users browsing this thread: 2 Guest(s)