12.02.2011, 05:28
when i use the say command/announce/pm it doesn't write anything exept numbers (if i will try to write a - it won't do anything but with numbers it works perfect...)
codeno errors)
codeno errors)
PHP код:
if(strcmp(cmd, "/say", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, COLOUR_ORANGE, "Usage: /say [text]");
return 1;
}
new text;
text = strval(tmp);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
new string[128];
format(string, sizeof(string), "**Admin [%s](id:%d): %s", playername, playerid, text);
SendClientMessageToAll(COLOUR_RED, string);
return 1;
}