#define LogMessage(%0,%1,%2,%3) format(string, sizeof(string),%2,%3) && SendClientMessage(%0, %1, string)
for(new i = 0; i < MAX_PLAYERS; i ++) { if(PlayerInfo[i][pLanguage] == 1 && PlayerInfo[i][pAdmin] >= 5) return LogMessage(i, COLOR_LOG, "AdmCmd: %s a acceptat report-ul lui %s.", sendername, giveplayer); else
if(PlayerInfo[i][pLanguage] == 2 && PlayerInfo[i][pAdmin] >= 5) return LogMessage(i, COLOR_LOG, "AdmCmd: %s accepted report of %s.", sendername, giveplayer); }
stock SendMessageToAdmins(text[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pAdmin] >= 5) { SendClientMessage(i, 0xFFFFFFFF, text); } } }
warning 202: number of arguments does not match definition
LogMessage("AdmCmd: %s a acceptat report-ul lui %s.", sendername, giveplayer);
Next time try to search
btw. edited for your admin level Код:
stock SendMessageToAdmins(text[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pAdmin] >= 5) { SendClientMessage(i, 0xFFFFFFFF, text); } } } |
new string[250];
format(string, sizeof(string), "AdmCmd: %s a acceptat report-ul lui %s.", sendername, giveplayer);
SendMessageToAdmins(string);
#define LogMessage(%0,%1,%2,%3) format(string, sizeof(string),%2,%3) \ SendClientMessage(%0, %1, string)
for(new i = 0, string[128]; i < MAX_PLAYERS; ++i)
{
if(PlayerInfo[i][pLanguage] == 1 && (5 <= PlayerInfo[i][pAdmin] <= 6)) return LogMessage(i, COLOR_LOG, "AdmCmd: %s a acceptat report-ul lui %s.", sendername, giveplayer);
else if(PlayerInfo[i][pLanguage] == 2 && (5 <= PlayerInfo[i][pAdmin] <= 6)) return LogMessage(i, COLOR_LOG, "AdmCmd: %s accepted report of %s.", sendername, giveplayer);
}
#define LogMessage(%0,%1,%2,%3) format(string, sizeof(string),%2,%3) && SendClientMessage(%0, %1, string)
for(new i = 0; i < MAX_PLAYERS; i ++) { if(PlayerInfo[i][pLanguage] == 1) return LogMessage(i, COLOR_LOG, "AdmCmd: %s a folosit comanda /gotomark.", sendername); else
if(PlayerInfo[i][pLanguage] == 2) return LogMessage(i, COLOR_LOG, "AdmCmd: %s used command /gotomark.", sendername); }
#define LogMessage(%0,%1,%2,%3) format(string, sizeof(string),%2,%3); SendClientMessage(%0, %1, string)
for(new i = 0, string[128]; i < MAX_PLAYERS; ++i)
{
if(PlayerInfo[i][pLanguage] == 1 && (5 <= PlayerInfo[i][pAdmin] <= 6)) return LogMessage(i, COLOR_LOG, "AdmCmd: %s a acceptat report-ul lui %s.", sendername, giveplayer);
else if(PlayerInfo[i][pLanguage] == 2 && (5 <= PlayerInfo[i][pAdmin] <= 6)) return LogMessage(i, COLOR_LOG, "AdmCmd: %s accepted report of %s.", sendername, giveplayer);
}