Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

zCMD problem

$
0
0
Hello guys, i have this command between the others:

Code:

CMD:o(playerid, params[])
{
        new string[128];
        if((noooc) && PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GRAD2, "The OOC channel has been disabled by an Admin !");
        if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, TEAM_CYAN_COLOR, "You can't speak, you have been silenced !");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(isnull(params)) return SendClientMessage(playerid, COLOR_CMD, "USAGE: (/o)oc [text]");
        format(string, sizeof(string), "(( %s: %s ))", sendername, result);
        OOCOff(COLOR_OOC,string);
        printf("%s", string);
        return CMD_ooc(playerid, params);
}


and i get this error:

Code:

error 017: undefined symbol "CMD_ooc"

and the line is this:

Code:

return CMD_ooc(playerid, params);

Whats the problem over here? i've made it like in tutorials..

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>