02.04.2015, 17:04
hello
i have make this command
and i get error
, i define it already..
this what i define
errors in this line
SCMF
i have make this command
and i get error
Код:
error 017: undefined symbol "format_string"
this what i define
pawn Код:
#define SCMF(%0,%1,%2,%3) format(format_string, sizeof(format_string),%2,%3) && SCM(%0, %1, format_string)
Код:
SCMF(playerid, COLOR_RED, "Вы аннулировали все выговоры %s",playerVariables[params[0]][pNormalName]); SCMF(params[0], COLOR_RED, "%s аннулировал вам все выговоры.",playerVariables[playerid][pNormalName]);
pawn Код:
CMD:unstai(playerid, params[])
{
if(playerVariables[playerid][pAdminLevel] < 7) return true;
if(sscanf(params, "d",params[0])) return SCM(playerid, COLOR_WHITE, "Syntax: /unstai [id]");
if(strcmp(playerVariables[playerid][pNormalName], "TEST", false) && strcmp(playerVariables[playerid][pNormalName], "TEST", false) && strcmp(playerVariables[playerid][pNormalName], "Samuel_Lecompte", false) && strcmp(playerVariables[playerid][pNormalName], "Bandy_Rasti", false)) return true;
if(playerVariables[params[0]][pAdminLevel] == 0) return true;
playerVariables[params[0]][pAvig] = 0;
SCMF(playerid, COLOR_RED, "Вы аннулировали все выговоры %s",playerVariables[params[0]][pNormalName]);
SCMF(params[0], COLOR_RED, "%s аннулировал вам все выговоры.",playerVariables[playerid][pNormalName]);
return true;
}