Jump to content

createVehicle Bugged?


iPrestege

Recommended Posts

Posted

Hello All, Will am working on my script but when the script trying to create the vehicle i get a error i don'n know from what is it and the create vehicle function have 4 arguments but i get the argument 5 got none on the debug?

the code on the client side ;

vehicle = {} 
vehicle[1] = createVehicle (411,  662.56219482422,1726.8951416016,6.9921875); 

Am waiting for the answer!

Thanks!!

  

Posted

This part of the code wont help alot, Because it has no errors at all ...

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted

That code has no errors.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
That code has no errors.

Yes,I know that and when i get this error i change it to ;

vehicle = {} 
vehicle[1] = createVehicle (411,  662.56219482422,1726.8951416016,6.9921875,_); 

And the same error bad arguemtn @ createVehicle argument 5 got none!

:?!?

  

Posted

Just remove the `_` because it isn't a needed argument:

vehicle = {} 
vehicle[1] = createVehicle (411,  662.56219482422,1726.8951416016,6.9921875) 

Sometimes I dream about cheese

Posted
Just remove the _ because it isn't a needed argument:
vehicle = {} 
vehicle[1] = createVehicle (411,  662.56219482422,1726.8951416016,6.9921875) 

I Know that you can see in the first code i don't use it but when i get the error i try it but nothing .

  

Posted

I don't get any error with your original code, the vehicle is created successfully.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
I don't get any error with your original code, the vehicle is created successfully.

Will you are right! but the vehicle created on my friend device and my device nothing just this error?

  

Posted

You mean that on your friend's MTA, it's created but not on yours?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Maybe it's a bug with the version you are using?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only.

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only.

I Know that and the vehicle should created and am not beginner for that :? and the vehicle should created : ) and don't say that wrong because it work's before but i don't know what happened after change the mta version .

  

Posted

You have error somewhere else and the debug showing you other thing.

It's better to post full code or no one can help you.

CiTLh.png

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...