14.08.2016, 21:48
So I've put the code "cmd:ar" and I have some errors while compiling, can you help me?
That's the code
And there are the errors: http://imgur.com/a/9NA4V
That's the code
Код:
CMD:ar(playerid, params[])
{
new id;
if(sscanf(params, "u", id)) return SCM(playerid, COLOR_GREY "/ar [playerid]");
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(PlayerInfo[id][pReported] == 1)
{
SendClientMessage(id, COLOR_ATTACK, "Reportul tau a fost primit si este in curs de rezolvare.");
format(szMessage, sizeof(szMessage), "(/ar) %s has accepted %s's report.",GetName(playerid),GetName(id));
submitToAdmins(szMessage, COLOR_FRED);
playerVariables[playerid][pReportAccepted] = id;
playerVariables[id][pReported] = 0;
playerVariables[id][pReportAccepted2] = playerid;
}
}
}
return 1;
}


