09.12.2009, 17:13
I would do that with foreach in such case.
pawn Код:
Itter_Create(Barrier,MAX_BARRIERS);
Itter_Add(Barrier,CreateObject(...));
SetTimer("BarRespawn",60000,true);
public BarRespawn()
{
foreach(Barrier,x)
{
DestroyObject(x);
Itter_Remove(Barrier,x);
Itter_Add(Barrier,CreateObject(...));
}
return;
}