19.05.2009, 19:59
Everytime I'm trying to add the /ooc cmd it just crashes when I try to compile it.
Did I miss something, a include?
I have changed the normal chat radius to 10. In RP (IC Chat).
This is the script:
Did I miss something, a include?
I have changed the normal chat radius to 10. In RP (IC Chat).
This is the script:
Код:
if(!strcmp(cmdtext, "/ooc", true) || !strcmp(cmdtext, "/o", true)) { new find = strfind(cmdtext, " ", true); if(find == -1 || find >= 30) return SendClientMessage(playerid, COLOR_RED, "Right Usage: \"/occ\" or \"/o\" [text]"); new str[128], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(str, sizeof(str), "((OOC: %s:%s ))", pname, cmdtext[find+1]); return SendClientMessageToAll(COLOR_OOC, str); }