01.03.2010, 22:50
Huh, you were using print(Message goes on the Console), and you not called the string you formated. This works.
Код:
if(strcmp(cmd, "/ooc", true,4) == 0 || strcmp(cmd, "/o", true,2) == 0) { new string[256], sendername[MAX_PLAYER_NAME+1]; new space=strfind(cmdtext," "); GetPlayerName(playerid,sendername,sizeof(sendername)); if(!strlen(cmdtext[space])||(space==-1))return SendClientMessage(playerid, COLOR_GREEN, "USAGE: (/o)oc [ooc chat]"); format(string, sizeof(string), "(( %s:%s ))", sendername, cmdtext[space]); SendClientMessageToAll(COLOR_GREEN,string); return 1; }