Foreach
#1

Okay, so I determinated that my server has been using pretty high CPU usage all the time, that's why I decided to use Unix timestamps for timers and all.

Now the point is, with all thoose optimizations, I added foreach (ofc), and I'm getting an error:
Код:
 error 017: undefined symbol "YSI_gS"
While the code is:
pawn Код:
foreach( Player, i ) // That's the error line...
{
    if( GetPVarInt( i, "Level" ) < 1 ) // I assume you know what this is for.
    {
        // Etc Etc, this code has no issues in it, since I get this error on ALL THE FOREACH LOOPS!
    }
}
So, anyone has a solution, I doubt
pawn Код:
new YSI_gS;
would do anything.

If I just use
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS (100)
for( new i = 0; i < MAX_PLAYERS; ++i )
{
    //...
}
I will get no error messages.
Reply
#2

pawn Код:
foreach(Player, i)
Reply
#3

Wow, I never knew spaces could affect that o_O...

Thankies!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)