Making a /saveveh command?
#1

Hello guys,

I have almost finished my server but I need a little help.
Here is my MySQL "vehicle" table format:


How would I make a command /vehsave and it would save the vehicle into MySQL and everytime I loaded my gamemode it would load the vehicles?

Thanks.
Reply
#2

It's easy!

You have to create the /vehsave command, in which you put a loop that iterates through all the vehicles, which retrieves their models, angles and coordinates, then with mysql plugin, for each vehicle, you insert a row into your database.

For the script, I'm not going to make you, you can search the internet, I've just given the way forward.

Urefeu
Reply
#3

Make into the database, a posX PosY Pos> PosR, in float... Color1 and Color2 Hex... not int
Reply
#4

EDIT: Fixed.

But can someone help me with this?;/
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)