Compiling Error [REPEVERYONE]
#4

Quote:
Originally Posted by PinEvil
Посмотреть сообщение
Also, If this "error 017: undefined symbol Player" continues. Put new Player; at the upper most line of code @ Line 4687.
If Player still isn't defined after including foreach, something is wrong with the include.

Quote:
Originally Posted by ******
foreach replaces some loops (normally the main player loop) with a faster, more efficient loop. Example:

pawn Код:
for (new i = 0; i != MAX_PLAYERS; ++i)
{
    if (IsPlayerConnected(i))
    {
        printf("Player %d is connected", i);
    }
}
Simply becomes:

pawn Код:
foreach (new i : Player)
{
    printf("Player %d is connected", i);
}
Reply


Messages In This Thread
Compiling Error [REPEVERYONE] - by zohartrejx - 04.05.2014, 06:16
Re: Compiling Error [REPEVERYONE] - by Dignity - 04.05.2014, 06:19
Re: Compiling Error [REPEVERYONE] - by PinEvil - 04.05.2014, 06:29
Re: Compiling Error [REPEVERYONE] - by Dignity - 04.05.2014, 06:33
Re: Compiling Error [REPEVERYONE] - by zohartrejx - 04.05.2014, 06:37
Re: Compiling Error [REPEVERYONE] - by MichealScript - 04.05.2014, 06:58

Forum Jump:


Users browsing this thread: 1 Guest(s)