22.10.2014, 11:13
Quote:
If it works and you need it to get data in a certain order, I don't see why you shouldn't be able to use it.
One example this could be useful: - first loading all vehicle-data (maximum fuel per vehicle-model, fuel consumption per vehicle-model, ...) - then loading all static vehicles that are created at certain locations (for missions for example) You need to load the maximum fuel for every vehicle-model first, then load the vehicles themselves (model, spawn coordinates, ...). Otherwise every created vehicle could end up with an empty fuel tank, unless your code loops over the unoccupied vehicles and refuels them anyway. Just make sure you're not creating infinite loops with this (like your OnceMore callback executing a query that calls AnotherCallback or even OnceMore again). |
Load all companies (From the company table) then grabbing all the Founders(From the main player table) per company (querying in an existing cache).
To avoid infinite loops, I have a print function in every callback(but primarily used for debugging). Thanks!