What's wrong with this cmd?
#7

pawn Код:
{
return IRC_Say(IRC_EchoConnection[0],channel,"4Invalid.");
must be

pawn Код:
}
return IRC_Say(IRC_EchoConnection[0],channel,"4Invalid.");
Thanks to realcop.
So this wuold be the complete code:

pawn Код:
IRCCMD:explode(botid, channel[], user[], host[], params[])
{
    if(IRC_IsOp(botid,channel,user))
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        giveplayerid = strval(tmp);
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
                if(IsPlayerConnected(giveplayerid))
                {
                    format(string, sizeof(string), "You exploded %s",giveplayer);
                    SendClientMessage(playerid,COLOR_RED,string);
                    SetPlayerHealth(giveplayerid, 10);
                    new Float:boomx, Float:boomy, Float:boomz;
                    GetPlayerPos(giveplayerid,boomx, boomy, boomz);
                    CreateExplosion(boomx, boomy , boomz, 7, 10);
                    new msg[128];
                    format(msg,sizeof(msg),"0,4Admin %s has exploded %s (type 7 explosion)", nameee, giveplayer);
                    IRC_GroupSay(IRC_Group, EchoChan, msg);
                    IRC_GroupSay(IRC_Group,"PRIVATE CHAN",msg);

                    GetPlayerName(playerid, nameee, 30);
                    printf("[Command] %s has used /explode to explode %s", nameee, giveplayer);
                }
                else
                {
                    format(string, sizeof(string), "%d is not an active player.", giveplayerid);
                    IRC_GroupSay(IRC_Group, EchoChan, msg);
                }
        }
        return IRC_Say(IRC_EchoConnection[0],channel,"4Invalid.");
    }
    return 1;
}
If realcop didn't say that, I wouldn't see it
Reply


Messages In This Thread
What's wrong with this cmd? - by Face9000 - 30.10.2010, 18:24
Re: What's wrong with this cmd? - by <Weponz> - 30.10.2010, 18:42
Re: What's wrong with this cmd? - by Shubham - 30.10.2010, 19:34
Re: What's wrong with this cmd? - by Face9000 - 30.10.2010, 20:10
Re: What's wrong with this cmd? - by Scenario - 30.10.2010, 20:11
Re: What's wrong with this cmd? - by Face9000 - 30.10.2010, 20:17
Re: What's wrong with this cmd? - by Kwarde - 30.10.2010, 20:36
Re: What's wrong with this cmd? - by Face9000 - 30.10.2010, 20:50
Re: What's wrong with this cmd? - by Kwarde - 30.10.2010, 21:10
Re: What's wrong with this cmd? - by Face9000 - 31.10.2010, 08:41

Forum Jump:


Users browsing this thread: 1 Guest(s)