Database write interval and vehicle lock (2 issues)
#7

I actually use a similar system to this right now in my RPG INC. how I acheived this was to store the owners name within the vehicleinfo array. when the payer connects my system scans the vehicles and locates the vehicle id's associated with that layer's name then assigns it to another array that holds the player's owned vehicle id's. The benefit is that the search only needs to be called everytime vehicle id's are moved around which is almost never OR when a player connects.

Check out my inc - look specifically in the tsys_vehicles.lib file and look for the stock process called:

SetPlayerOwnedVehicleIDs(playerid)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)