22.10.2011, 10:19
Vehicles, Pickups, Text Draws, 3D Text Labels, Objects...
I'm not sure which start at 0 or 1, so what I do is after creating them, bump the Int Varible up by +1, then bump it down -1 whenever I might need to access that information. This helps me determine if a certain varible actually exist also since default of any checked varible is always 0 etc.
Not sure exactly if this would help with your problem or not, but thought it was still worth mentioning
Example though: A vehicle is created which returns its vehicleid, so I add +1 to that (Varible) right after its been created. In most cases, you might need to check if that varible matches up to a certain vehicle id, so I first do a check if the varible is not 0, then -1 to that varible & perform the check. Restoring the +1 after all those actions if nessecary (Not Destroyed or something).
I'm not sure which start at 0 or 1, so what I do is after creating them, bump the Int Varible up by +1, then bump it down -1 whenever I might need to access that information. This helps me determine if a certain varible actually exist also since default of any checked varible is always 0 etc.
Not sure exactly if this would help with your problem or not, but thought it was still worth mentioning
Example though: A vehicle is created which returns its vehicleid, so I add +1 to that (Varible) right after its been created. In most cases, you might need to check if that varible matches up to a certain vehicle id, so I first do a check if the varible is not 0, then -1 to that varible & perform the check. Restoring the +1 after all those actions if nessecary (Not Destroyed or something).