/o or /ooc help
#4

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


Messages In This Thread
/o or /ooc help - by RoneyRemington - 01.03.2010, 20:48
Re: /o - by RoneyRemington - 01.03.2010, 21:14
Re: /o or /ooc help - by RoneyRemington - 01.03.2010, 22:32
Re: /o or /ooc help - by Nandonalt - 01.03.2010, 22:50

Forum Jump:


Users browsing this thread: 3 Guest(s)