PHP Code:
SCM(playerid, COLOR_RED, ""COL_BLUE"[ERROR]: "COL_WHITE"/%s command is not found in our server database, use /help", cmdtext);
I'll suppose SCM is just a
#define SCM SendClientMessage and not a function, if that's the case, there's no formatting on SendClientMessage, which means you'll first have to use the
format function and then send the formatted message.
https://sampwiki.blast.hk/wiki/SendClientMessage
https://sampwiki.blast.hk/wiki/Format
Structurally it'd be like:
PHP Code:
public OnPlayerCommandPerformed(cmdid, playerid, cmdtext[], success)
{
if(!success)
{
create a string of a considerable size
format the string with the message you want
send the client message with the string as the message parameter
return the value you think you should
}
return 1;
}