Posts: 34
Threads: 14
Joined: Jun 2011
Reputation:
0
Hello, I am coding a MYSQL based system that will save the vehicles. I'm having the information of vehicle owners by nicknames.But the problem is when same person is saving two or more vehicles ican only have the information of first vehicle , nothing more. I want to do when I press the shift key deleting the old vehicle information and recording details of the new vehicle. How can i do this? Thanks for your help.
Posts: 152
Threads: 2
Joined: Nov 2013
Reputation:
0
You can make this for using mysql function UPDATE to update vehicle owner data and than using 3dtextlabel to show who is vehicle info. And if you want player have two vehicles, when you need write to player enum vehicle1 and vehicle2.
Posts: 843
Threads: 61
Joined: Feb 2013
Reputation:
0
It's not a problem to save large enum in some table. I had 5 vehicles with all data saved for each player in SQLite. You don't need to save vehicle IDs, you only need to save everything else including model ID. Player's vehicles will get new ID each time they connect to the server.