SA-MP Forums Archive
Weird problem (foreach i think?) - 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: Weird problem (foreach i think?) (/showthread.php?tid=281554)



Weird problem (foreach i think?) - Jimbo01 - 06.09.2011

Код:
C:\Dokumente und Einstellungen\Ab\Desktop\backup GTA\Server backup\RPGGM.pwn(1343) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Dokumente und Einstellungen\Ab\Desktop\backup GTA\Server backup\RPGGM.pwn(1345) : error 021: symbol already defined: "InDerby"
C:\Dokumente und Einstellungen\Ab\Desktop\backup GTA\Server backup\RPGGM.pwn(2924) : error 028: invalid subscript (not an array or too many subscripts): "InDerby"
C:\Dokumente und Einstellungen\Ab\Desktop\backup GTA\Server backup\RPGGM.pwn(2924) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Ab\Desktop\backup GTA\Server backup\RPGGM.pwn(2924) : error 001: expected token: ";", but found "}"
C:\Dokumente und Einstellungen\Ab\Desktop\backup GTA\Server backup\RPGGM.pwn(2924) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Ab\Desktop\backup GTA\Server backup\RPGGM.pwn(2924) : error 001: expected token: ";", but found ")"
C:\Dokumente und Einstellungen\Ab\Desktop\backup GTA\Server backup\RPGGM.pwn(2924) : fatal error 107: too many error messages on one line

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


6 Errors.
I have this:

new Iterator:InDerby<MAX_PLAYERS>;
new bool:InDerby[MAX_PLAYERS];

and this under onlayerdisconnect:

if(InDerby { playerid } == true) Remove_From_Derby(playerid);


Why i get this errors ?


Re: Weird problem (foreach i think?) - [MWR]Blood - 06.09.2011

pawn Код:
if(InDerby[playerid] == true) Remove_From_Derby(playerid);



Re: Weird problem (foreach i think?) - [L3th4l] - 06.09.2011

pawn Код:
new bool:InDerby[MAX_PLAYERS char];



Re: Weird problem (foreach i think?) - Jimbo01 - 06.09.2011

still same errors


Re: Weird problem (foreach i think?) - =WoR=Varth - 06.09.2011

pawn Код:
new Iterator:InDerby<MAX_PLAYERS>;
new bool:InDerby[MAX_PLAYERS];
2 InDerby?


Re: Weird problem (foreach i think?) - Jimbo01 - 06.09.2011

Problem Solved:

I was using old foreach include xD

Thanks all


Re: Weird problem (foreach i think?) - dowster - 06.09.2011

http://forum.sa-mp.com/attachment.ph...9&d=1315196697

for any errors you get next time