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

Quote:
Originally Posted by aslan890
Посмотреть сообщение
So how do i replace it ?

To which one to what ?
I've changed the syntax of your script to the new few days ago. But if you need to fix it by yourself, just paste the gamemode into a notepad and use CTRL + F and inside the box "foreach". Any part of code which is like this
pawn Код:
foreach(Player, i)
should be
pawn Код:
foreach(new i : Player)
i is the variable, it may be "p" or "playerid", so it should be
pawn Код:
foreach(new p : Player)
or
pawn Код:
foreach(new playerid : Player)
instead.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)