/say message cuts off
#1

Alrighty then, I have a /say command for admins, but the problem is that when I enter more than 117 characters to the message, it won't appear in the server. This is the command, how can I fix it?

pawn Код:
COMMAND:say(playerid, params[])
{
    if(isPlayerAdmin(playerid) >= 1)
    {
        new message[256];
        if(!sscanf(params, "s[256]", message))
        {
            new adminname[MAX_PLAYER_NAME+1];
            GetPlayerName(playerid, adminname, sizeof(adminname));
            format(message, sizeof(message), "Administrator %s (%d): %s", adminname, playerid, message);
            return SendClientMessageToAll(0xB8860BAA, message);
        }
        else SendClientMessage(playerid, -1, "USAGE: /say <message>");
    }
    else SendClientMessage(playerid, 0xFFFF0000, "ERROR: Insufficient permission!");
    return 1;
}
If possible, I'd like to know how to cut it off to two lines if string is long.
Reply


Messages In This Thread
/say message cuts off - by arad55 - 06.08.2014, 06:17
Re: /say message cuts off - by arad55 - 06.08.2014, 06:39
Re: /say message cuts off - by youssefehab500 - 06.08.2014, 06:43
Re: /say message cuts off - by DoflamingoValentin - 06.08.2014, 07:13
Re: /say message cuts off - by Threshold - 06.08.2014, 07:45
Re: /say message cuts off - by Stinged - 06.08.2014, 07:45
Re: /say message cuts off - by arad55 - 06.08.2014, 09:11

Forum Jump:


Users browsing this thread: 1 Guest(s)