Array size
#4

Quote:
Originally Posted by NeXoR
Посмотреть сообщение
Something like this ?
PHP код:
    LoadVehicles();
    foreach(new 
Vehicle) if(GetVehicleModel(i) == 476Rustlers[i] = 1
(Rustlers[MAX_VEHICLES])
If so then how can I mark the vehicle as shot after shooting a missile ?
index mismatching is a problem over their.
you can do something like this
Код:
new j;
foreach(new i : Vehicle) 
{
 if(GetVehicleModel(i) == 476 && j != sizeof(Rustlers) )
 {
    Rustlers[j] = /*Process it*/;
    j++;
 }
}
Reply


Messages In This Thread
Array size - by NeXoR - 05.11.2016, 22:33
Re: Array size - by SickAttack - 05.11.2016, 22:41
Re: Array size - by NeXoR - 05.11.2016, 22:46
Re: Array size - by SyS - 06.11.2016, 00:17

Forum Jump:


Users browsing this thread: 1 Guest(s)