question about an array
#1

So i have this array,
pawn Код:
new gangDB[MAX_GANGS][giitem];
and for reason when loading i want it to not load into the 0th slot. Is it possible too skip it? I'm using a for loop to load stuff into it and just couldn't think of a way.
pawn Код:
new rows,fields;
    cache_get_data(rows,fields);
    for(new i; i<rows; i++)
    {
        new tmp[64];
        cache_get_row(i,0,tmp,dbHandler); gangDB[i][gid]=strval(tmp);
        cache_get_row(i,1,tmp,dbHandler); format(gangDB[i][Leader],sizeof(tmp),tmp);
         }
Reply


Messages In This Thread
question about an array - by dusk - 30.04.2013, 14:30
Re: question about an array - by dusk - 30.04.2013, 17:04
Re: question about an array - by Scenario - 30.04.2013, 17:10
Re: question about an array - by dusk - 30.04.2013, 17:11
Re: question about an array - by Scenario - 30.04.2013, 17:13
Re: question about an array - by dusk - 30.04.2013, 17:16
Re: question about an array - by dusk - 30.04.2013, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)