07.06.2013, 23:26
Код:
public ReportBroadCast(color,const string[],level) { for(new i = 0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] >= level) { if(!gReports[i]) { SendClientMessage(i, color, string); printf("%s", string); } } } } return 1; }
Код:
public ReportBroadCast(color,const string[],level) { for(new i = 0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] >= level) || PlayerInfo[i][pHelper] >= level) { if(!gReports[i]) { SendClientMessage(i, color, string); printf("%s", string); } } } } return 1; }
The errors:
C:\Users\Maikel\Desktop\Jamming RP\pawno\J-RP.pwn(9292 : error 029: invalid expression, assumed zero
C:\Users\Maikel\Desktop\Jamming RP\pawno\J-RP.pwn(9292 : warning 215: expression has no effect
C:\Users\Maikel\Desktop\Jamming RP\pawno\J-RP.pwn(9292 : error 001: expected token: ";", but found ")"
C:\Users\Maikel\Desktop\Jamming RP\pawno\J-RP.pwn(9292 : error 029: invalid expression, assumed zero
C:\Users\Maikel\Desktop\Jamming RP\pawno\J-RP.pwn(9292 : fatal error 107: too many error messages on one line