SA-MP Forums Archive
problem with code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: problem with code (/showthread.php?tid=563344)



problem with code - Anfaradus - 15.02.2015

Problem:

Код:
 D:\SA-MP GameModes\COD6 (Windows)\gamemodes\COD6.pwn(4683) : error 017: undefined symbol "foreach"
D:\SA-MP GameModes\COD6 (Windows)\gamemodes\COD6.pwn(4683) : error 029: invalid expression, assumed zero
D:\SA-MP GameModes\COD6 (Windows)\gamemodes\COD6.pwn(4683) : error 017: undefined symbol "Player"
D:\SA-MP GameModes\COD6 (Windows)\gamemodes\COD6.pwn(4683) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Lines:

Код:
	SetTimer("ZoneBonouses", 30000, true);
	SetTimer("ZoneStats", 1000, true);
	SetTimer("UpdateLaunchTime", 60000, true);

	foreach(new i: Player); // line 4683
	{
 		SetPVarInt(i, "laser", 0);
   		SetPVarInt(i, "color", 18643);
     }



Re: problem with code - TunisianoGamer - 15.02.2015

SetTimer("ZoneBonouses", 30000, true);
SetTimer("ZoneStats", 1000, true);
SetTimer("UpdateLaunchTime", 60000, true);

foreach(new i: Player) // line 4683
{
SetPVarInt(i, "laser", 0);
SetPVarInt(i, "color", 18643);
}