21.10.2010, 09:11
So today I started to think about one thing, well Im going to make variable assigned to vehicle like Water[MAX_VEHICLES]; , but I will use it only on certain vehicle and their IDs is one after another.
So now we start to talk about optimization, and I started to think why does I need to use it for all vehicles ( 2000 ), if I need it only for 5 cars, so I could make Water[5]; and I guess everyone already seen how much cells I could save ( 1995 ).
So I need some advice how to assign only on these 5 cars.
I want try like this, not tested I just write it here on forum
But how to in place where I need this value I could make that its read like GetPlayerVehicleID(... if(Water[..] > 0) ..
I know its posibble, just my brains dont work at morning, and I can only imaginate how much memory I can save.
So now we start to talk about optimization, and I started to think why does I need to use it for all vehicles ( 2000 ), if I need it only for 5 cars, so I could make Water[5]; and I guess everyone already seen how much cells I could save ( 1995 ).
So I need some advice how to assign only on these 5 cars.
I want try like this, not tested I just write it here on forum
pawn Код:
new Water[5];
I know its posibble, just my brains dont work at morning, and I can only imaginate how much memory I can save.