02.06.2011, 17:37
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:
While the code is:
So, anyone has a solution, I doubt
would do anything.
If I just use
I will get no error messages.
Now the point is, with all thoose optimizations, I added foreach (ofc), and I'm getting an error:
Код:
error 017: undefined symbol "YSI_gS"
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!
}
}
pawn Код:
new YSI_gS;
If I just use
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS (100)
for( new i = 0; i < MAX_PLAYERS; ++i )
{
//...
}