30.12.2015, 15:26
When i type this command and i type the text i want it is giving me the usage instad of showing the message
PHP код:
CMD:rm(playerid, params[])
{
if(pInfo[playerid][pRamcl] >= 1)
return SendClientMessage( playerid, 0xFF0000FF, "Command not found! Please try again, or use /cmds to view a list of working commands." );
new text[128];
if(sscanf(params, "s[128]",text))
return SendClientMessage(playerid, RED, "/rm [text]");
format(text, sizeof(text), "[RAMCREWMSG]:(%s){33CCFF}%s: %s", GetRamFromLevel(playerid), rName(playerid), text);
SendRamMessage(COLOR_LIGHTBLUE, text);
return 1;
}