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

Quote:
Originally Posted by liam1412
Посмотреть сообщение
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.
Hate to bump but Im stumped on this one?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)