[pHelper] ?
#1

Код:
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;
}
works, but..

Код:
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;
}
Won't work, why is that?

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
Reply


Messages In This Thread
[pHelper] ? - by whando - 07.06.2013, 23:26
Re: [pHelper] ? - by StuartD - 07.06.2013, 23:36
Re: [pHelper] ? - by Azazelo - 07.06.2013, 23:38
Re: [pHelper] ? - by whando - 07.06.2013, 23:39

Forum Jump:


Users browsing this thread: 1 Guest(s)