strcmp to zcmd
#8

Got i problem now i start with /me but when i type like /me smiles then the server crash why?

pawn Код:
}
CMD:me(playerid, params[])
{
    new text[128],string[128],sendername[MAX_PLAYER_NAME];
    if(sscanf(params, "s[128]", text)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /me [text]");
    else
    {
        if(Mute[playerid] == 1) return SendClientMessage(playerid,COLOR_LIGHTRED,"WARNING: You are currently muted.");
        format(sendername, sizeof(sendername), "%s", PlayerName(playerid));
        GiveNameSpace(sendername);
        format(string, sizeof(string), "* %s %s", sendername, text);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE);
    }
    return 1;
Reply


Messages In This Thread
strcmp to zcmd - by N0FeaR - 24.09.2012, 11:56
Re: strcmp to zcmd - by daastle - 24.09.2012, 12:01
Re: strcmp to zcmd - by N0FeaR - 24.09.2012, 12:37
Re: strcmp to zcmd - by Riddy - 24.09.2012, 12:42
Re: strcmp to zcmd - by N0FeaR - 24.09.2012, 12:56
Re: strcmp to zcmd - by daastle - 24.09.2012, 12:57
Re: strcmp to zcmd - by N0FeaR - 24.09.2012, 13:02
Re: strcmp to zcmd - by N0FeaR - 24.09.2012, 14:03
Re: strcmp to zcmd - by N0FeaR - 24.09.2012, 14:15
Re: strcmp to zcmd - by daastle - 24.09.2012, 14:27

Forum Jump:


Users browsing this thread: 1 Guest(s)