My text is too short?
#1

This is a problem on all of my commands. I type in something long, that should be 100-200 character, but the server shows me the result in short, like only the first 50 or characters. What's wrong here?

pawn Код:
CMD:o(playerid, params[350])
{
    new text[371];
    if(sscanf(params, "%s", params)) return SendClientMessage(playerid, USAGE_COLOR, "Usage: /s [Global OOC]");
    format(text, sizeof(text), "> [OOC] %s: (( %s ))",pName[playerid], params);
    SendClientMessageToAll(GOOC_COLOR, text);
    return 1;
}
Also, when player types in normal chat, if he types too long of a line, the message won't show up. I want it to show the message, and if it's too long it should show the characters that are over the limit cut off, missing.

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(!pLoggedIn[playerid]) return 1;
    new chat[371];
    format(chat, sizeof(chat), "%s Says: %s", pName[playerid], text);
    ProxDetector(17.0, playerid, chat, LCHAT1_COLOR, LCHAT2_COLOR, LCHAT3_COLOR, LCHAT4_COLOR, LCHAT5_COLOR);
    return 0;
}
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: 2 Guest(s)