foreach
#1

What am I doing wrong here?

pawn Code:
new Iterator:MaxSavedSlots<MAX_PLAYERS>; //Global

foreach(MaxSavedSlots, slot) //OnPlayerConnect
{
//stuff..
}
I get this:
pawn Code:
warning 203: symbol is never used: "YSI_gCMaxSavedSlots"
Reply
#2

pawn Code:
new Iterator:YSI_gCMaxSavedSlots<MAX_PLAYERS>; //Global

foreach(YSI_gCMaxSavedSlots, slot) //OnPlayerConnect
{
//stuff..
}
I hope it helped ...
Reply
#3

Do you ever add or remove data from or to the iterator variable? If not, try to do so by using one of the following functions:

Iter_Add( MaxSavedSlots, value );
Iter_Remove( MaxSavedSlots, value );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)