22.08.2012, 10:24
Hey guys
This is my /ann cmd, well I want it to send a full message, it doesn't .. It sends like 1/4 of the message
So if I wanna say:
Hello, welcome to the server, please type /help to get more information about the server and script.
It sends:
Hello, welcome to the server, please ty
It doesn't continue it, is there any way to fix this?
pawn Код:
CMD:ann(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_RED, "Error Occured: This command is only for Admins.");
new sendername[MAX_PLAYER_NAME], str[256];
if(sscanf(params,"s", str)) return SendClientMessage(playerid, COLOR_GREEN, "[ADMIN] /ann [Text]");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(str, sizeof(str), ""#COL_RED"[ADMIN-ANN]"#COl_WHITE"%s: %s", sendername, str);
SendClientMessageToAll(COLOR_RED, str);
GameTextForAll( str, 5000, 3 );
return 1;
}
So if I wanna say:
Hello, welcome to the server, please type /help to get more information about the server and script.
It sends:
Hello, welcome to the server, please ty
It doesn't continue it, is there any way to fix this?