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

Quote:
Originally Posted by iggy1
Посмотреть сообщение
1) I'd advise saving every 2-5 minutes (and obviously when they disconnect) you don't really to save more often than that.

2) Store all the players vehicleids in an array, then loop through the array un/locking the vehicles when needed.
All vehicles are already in an array but I don't want to loop through upto 200 vehicles everytime someone wants to lock /unlock a vehicle to see if it belongs to them. Is there any other way?

Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)