Jump to content

Help with some coding


ARares

Recommended Posts

Posted

Maybe you should add a check for vehicle to see if its blown or with low/invalid health then you see if you save it or no

"El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más".

Att: -|TG|-Mister[Q]<.

Posted (edited)
9 hours ago, MisterQuestions said:

Maybe you should add a check for vehicle to see if its blown or with low/invalid health then you see if you save it or no

Idk lua, can you tell me which line i need to edit? and what i need to add?

Edited by ARares
Posted

We are here to help you, you should learn lua first before trying to modify something from your gamemode.

"El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más".

Att: -|TG|-Mister[Q]<.

Posted
3 minutes ago, MisterQuestions said:

We are here to help you, you should learn lua first before trying to modify something from your gamemode.

Ok, i fixed that bug, but i have one more, and how i can add a unique id to all vehicles?, the id to me random generated and to look like this:

DVeh0xxxxx (and to add a random number e.g. DVeh05 or DVeh0142)

How i can do that?, i need that to check if the Vehicle is in DB.

Posted
1 minute ago, MisterQuestions said:

Why you don't just create an auto_index in your database?

I have one, is called 'id' but is not attached to the vehicle from game, is just in DB. and if is not attached i can't check that id with the one from DB

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...