Old foreach.inc files are no longer compatible with YSI.
#9

i will try to expain it very simple. In your script (old version) the syntax is:
pawn Код:
foreach(Player, variable_name_here)
and it becomes (new version)
pawn Код:
foreach(new variable_name_here: Player)
You do replace the variable_name_here with a name of the variable, it might be i, p, playerid or wharever.
Let's say you have this.
pawn Код:
foreach(Player, LOL)
With the new syntax, it becomes
pawn Код:
foreach(new LOL: Player)
I hope that I explained very good and the point is to understand it.

PS: Did you find the missing brace?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)