My own /ann cmd doesn't work well
#1

Hey guys

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;
}
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?
Reply


Messages In This Thread
My own /ann cmd doesn't work well - by Guitar - 22.08.2012, 10:24
Re: My own /ann cmd doesn't work well - by Akira297 - 22.08.2012, 10:26
Re: My own /ann cmd doesn't work well - by Guitar - 22.08.2012, 10:31
Re: My own /ann cmd doesn't work well - by Akira297 - 22.08.2012, 10:32
Re: My own /ann cmd doesn't work well - by Ranama - 22.08.2012, 10:33
Re: My own /ann cmd doesn't work well - by Guitar - 22.08.2012, 10:34
Re: My own /ann cmd doesn't work well - by Ranama - 22.08.2012, 10:42
Re: My own /ann cmd doesn't work well - by FalconX - 22.08.2012, 10:44

Forum Jump:


Users browsing this thread: 5 Guest(s)