12.05.2011, 09:01
Hi everyone,
When I type the /announce command, and after that a message, it shows only until the first space, and that's it.
here is the Code:
Thank you very much!
When I type the /announce command, and after that a message, it shows only until the first space, and that's it.
here is the Code:
Код:
if(strcmp(cmd, "/announce", true) == 0 || strcmp(cmd, "/ann", true) == 0)
{
if(PlayerInfo[playerid][pAdminLevel] >= gCommands[ANNOUNCE])
{
new tmp[256], string[150];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){ return SendClientMessage(playerid, COLOR_LIGHTCYAN, "./announce | /ann [txt]"); }
format( string, sizeof(string), "~g~%s", tmp);
GameTextForAll(string, 5000, 5);
}
return 1;
}

