Array starting value
#1

new pickup_id[MAX_PICKUPS] = -1;

But they're all 0 apart from pickup_id[0].
Reply
#2

a simple loop will do it:
Код:
new pickup_id[MAX_PICKUPS];
ongamemodeinit:
Код:
for(new pid=0;pid<MAX_PICKUPS;pid++)
{
	pickup_id[pid]=-1;
}
Reply
#3

oh, thx ****** - for telling me that i must have missed some parts in the pawn-lang.pdf >-< you kinda force me to seek through all my arrays. learning never ends.. btw, page 64 heheh
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)