New foreach compile problem
#1

Hi people,
I updated YSI and when I tried to compile message "foreach is no longer compatible with YSI" apears. Also I updated foreach and when I tried to compile I can't.
Here you can see what I am talking about


C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\YSI\y_iterate.inc(121 : warning 219: local variable "s1" shadows a variable at a preceding level
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(250) : warning 201: redefinition of constant/macro (symbol "_Y_ITER_C3:%0[%1]@YSII_Cg,%2[%3]@YSII_Ag[%4]={%5}")
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(499) : error 021: symbol already defined: "Player@YSII_Cg"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(503) : error 021: symbol already defined: "Bot@YSII_Cg"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(919) : error 021: symbol already defined: "Itter_OPDCInternal"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(995) : error 021: symbol already defined: "Itter_RandomInternal"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(1033) : error 021: symbol already defined: "Itter_FreeInternal"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(1062) : error 021: symbol already defined: "Itter_AddInternal"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(1096) : error 021: symbol already defined: "Itter_RemoveInternal"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(1119) : error 021: symbol already defined: "Itter_SafeRemoveInternal"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(1153) : error 021: symbol already defined: "Itter_ContainsInternal"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(1173) : error 021: symbol already defined: "Itter_ClearInternal"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(1197) : warning 219: local variable "s1" shadows a variable at a preceding level
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(119 : error 021: symbol already defined: "Itter_InitInternal"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\foreach.inc(1224) : error 021: symbol already defined: "Itter_PrevInternal"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\moneyhax.inc(79) : error 021: symbol already defined: "Itter_OnGameModeInit"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\moneyhax.inc(97) : error 021: symbol already defined: "Itter_OnPlayerConnect"
C:\Users\Adin\Downloads\New Generation\New Generation\pawno\include\YSI\internal\y_textint.in c(279) : error 021: symbol already defined: "Itter_OnFilterScriptInit"
C:\Users\Adin\Downloads\New Generation\New Generation\gamemodes\NG-RP-v2.1.pwn(6791) : error 021: symbol already defined: "main"
C:\Users\Adin\Downloads\New Generation\New Generation\gamemodes\NG-RP-v2.1.pwn(21779) : warning 217: loose indentation
C:\Users\Adin\Downloads\New Generation\New Generation\gamemodes\NG-RP-v2.1.pwn(21794) : warning 217: loose indentation
C:\Users\Adin\Downloads\New Generation\New Generation\gamemodes\NG-RP-v2.1.pwn(24237) : error 021: symbol already defined: "Itter_OnPlayerDisconnect"
C:\Users\Adin\Downloads\New Generation\New Generation\gamemodes\NG-RP-v2.1.pwn(47914) : warning 215: expression has no effect
C:\Users\Adin\Downloads\New Generation\New Generation\gamemodes\NG-RP-v2.1.pwn(54354) : warning 203: symbol is never used: "Langs_AddLanguage"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


17 Errors.


What I have to do?
Reply
#2

Bump!

Will someone help me?
Reply
#3

New foreach use this syntax:

foreach(new {var_name}:{iteration})


You use this too?
Reply
#4

Maybe I use it? I just updated foreach and problems are apears. Please help me.
Reply
#5

As you said
Quote:

foreach is no longer compatible with YSI

Use y_iterate instead.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)