06.07.2011, 20:35
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?
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 Код:
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;
}
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;
}