Admin chat sending blank messages
#1

Hello, I have never come across this before but when I do /a message on my server it just sends a blank message. It never used to do it.

Here's my command.
pawn Код:
CMD:a(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new achat[128], string[128];
        if(sscanf(params, "s[128]", achat)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /a [message]");

        switch(PlayerInfo[playerid][pAdmin])
        {
            case 1: format(string, sizeof(string), "{009DFF}Trial Mod %s: {FFFFFF}%s", PlayerName(playerid), achat);
            case 2: format(string, sizeof(string), "{009DFF}Moderator %s: {FFFFFF}%s", PlayerName(playerid), achat);
            case 3: format(string, sizeof(string), "{009DFF}Admin %s: {FFFFFF}%s", PlayerName(playerid), achat);
            case 4: format(string, sizeof(string), "{009DFF}Lead Admin %s: {FFFFFF}%s", PlayerName(playerid), achat);
            case 5: format(string, sizeof(string), "{009DFF}Owner %s: {FFFFFF}%s", PlayerName(playerid), achat);
        }
        SendAdminMessage(COLOR_WHITE, string);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "ERROR: You don't seem to be an admin!");
    }
    return 1;
}
Reply


Messages In This Thread
Admin chat sending blank messages - by Luis- - 17.09.2011, 20:56
Re: Admin chat sending blank messages - by =WoR=Varth - 17.09.2011, 21:03
Re: Admin chat sending blank messages - by Luis- - 17.09.2011, 21:05
Re: Admin chat sending blank messages - by =WoR=Varth - 17.09.2011, 21:10
Respuesta: Admin chat sending blank messages - by OPremium - 17.09.2011, 21:12
Re: Admin chat sending blank messages - by Luis- - 17.09.2011, 21:12
Respuesta: Re: Admin chat sending blank messages - by OPremium - 17.09.2011, 21:20
Re: Admin chat sending blank messages - by Tee - 17.09.2011, 21:22
Re: Admin chat sending blank messages - by Luis- - 17.09.2011, 21:24
Re: Admin chat sending blank messages - by =WoR=Varth - 17.09.2011, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)