My text is too short?
#3

pawn Код:
CMD:o(playerid, params[])
{
    if(!pLoggedIn[playerid]) return 0;
    new input[128];
    if(sscanf(params, "s[128]", input)) return SendClientMessage(playerid, USAGE_COLOR, "Usage: /s [Global OOC]");
    if(!sscanf(params, "s[128]", input))
    {
        new text[129];
        format(text, sizeof(text), "> [OOC] %s: (( %s ))", pName[playerid], input);
        if(strlen(text > 128)) return SendClientMessage(playerid, 0xFF0000, "Your text is too long to show. Try to resize your text.");
        SendClientMessageToAll(GOOC_COLOR, text);
    }
    return 1;
}
Reply


Messages In This Thread
My text is too short? - by Outcast - 06.07.2011, 20:35
Re: My text is too short? - by Outcast - 06.07.2011, 20:39
Re: My text is too short? - by BigETI - 06.07.2011, 20:53
Re: My text is too short? - by Outcast - 06.07.2011, 21:24
Re: My text is too short? - by Shadoww5 - 06.07.2011, 23:21
Re: My text is too short? - by =WoR=Varth - 07.07.2011, 00:18
Re: My text is too short? - by Outcast - 07.07.2011, 00:47

Forum Jump:


Users browsing this thread: 1 Guest(s)