15.12.2013, 17:41
In a filterscript I made, all commands return 1, and should work, though in the server if I load the filterscript it always says "SERVER:UNKNOWN COMMAND", and the command doesn't work, What function could block this?
public OnPlayerCommandText(playerid, cmdtext[])
CMD:report(playerid, params[])
{
new string[128];
if(strlen(params)>=100)return ErrorMessage(pid, "Max report length is 100.");
format(string, sizeof(string), "[Report] %s {%d}: %s", GetName(playerid), playerid, params);
SCM(pid, COLGREEN, string);
SCM(pid, COLGREEN, "Your message has been sent to online admins!");
foreach (new i : Player)
{
if(PlayerInfo[i][pAdmin] >=1)
{
SCM(i, COLGREEN, string);
}
}
print(string);
return 1;
}