Compiling Error [REPEVERYONE] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Compiling Error [REPEVERYONE] (
/showthread.php?tid=511128)
Compiling Error [REPEVERYONE] -
zohartrejx - 04.05.2014
Hello!
I'm trying to run COD6 Script.
Currently, i get these errors.
Quote:
D:\San ANDREAS SERVER\gamemodes\COD6v3.pwn(4687) : error 017: undefined symbol "foreach"
D:\San ANDREAS SERVER\gamemodes\COD6v3.pwn(4687) : error 029: invalid expression, assumed zero
D:\San ANDREAS SERVER\gamemodes\COD6v3.pwn(4687) : error 017: undefined symbol "Player"
D:\San ANDREAS SERVER\gamemodes\COD6v3.pwn(4687) : fatal error 107: too many error messages on one line
|
I would really need help!
I will rep anyone who tries to help!
Thanks.
Re: Compiling Error [REPEVERYONE] -
Dignity - 04.05.2014
Link:
https://sampforum.blast.hk/showthread.php?tid=92679
Re: Compiling Error [REPEVERYONE] -
PinEvil - 04.05.2014
Also, If this "error 017: undefined symbol Player" continues. Put new Player; at the upper most line of code @ Line 4687.
Re: Compiling Error [REPEVERYONE] -
Dignity - 04.05.2014
Quote:
Originally Posted by PinEvil
Also, If this "error 017: undefined symbol Player" continues. Put new Player; at the upper most line of code @ Line 4687.
|
If Player still isn't defined after including foreach, something is wrong with the include.
Quote:
Originally Posted by ******
foreach replaces some loops (normally the main player loop) with a faster, more efficient loop. Example:
pawn Код:
for (new i = 0; i != MAX_PLAYERS; ++i) { if (IsPlayerConnected(i)) { printf("Player %d is connected", i); } }
Simply becomes:
pawn Код:
foreach (new i : Player) { printf("Player %d is connected", i); }
|
Re: Compiling Error [REPEVERYONE] -
zohartrejx - 04.05.2014
Thanks to everyone, fixed!
Re: Compiling Error [REPEVERYONE] -
MichealScript - 04.05.2014
Wronge Section !! you must post this topic into the "Scripting Help"