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

My array looks like this


playerVehicles[vehicleid][vModelId]
playerVehicles[vehicleid][vOwnerId] //internal DB autoindex key
playerVehicles[vehicleid][vTmpPlayerId] // The playerid of the charater given at login

So I only need to loop through vehicles that belong to vTmpPlayerId. But I can't search an array so I would have to loop all spawned vehicles to find if vTmpPlayerId == playerid. This seems very inefficient.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)