iPrestege Posted April 26, 2013 Posted April 26, 2013 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!!
PaiN^ Posted April 26, 2013 Posted April 26, 2013 This part of the code wont help alot, Because it has no errors at all ...
iPrestege Posted April 26, 2013 Author Posted April 26, 2013 This part of the code wont help alot, Because it has no errors at all ... Will i know that but the error just on this line !
iPrestege Posted April 26, 2013 Author Posted April 26, 2013 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! !?
denny199 Posted April 26, 2013 Posted April 26, 2013 Just remove the `_` because it isn't a needed argument: vehicle = {} vehicle[1] = createVehicle (411, 662.56219482422,1726.8951416016,6.9921875)
iPrestege Posted April 26, 2013 Author Posted April 26, 2013 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 .
denny199 Posted April 26, 2013 Posted April 26, 2013 Wuuuuut? You readed the first code, that you aren't using? And wtf, I quite didn't understand you 0,o
Castillo Posted April 26, 2013 Posted April 26, 2013 I don't get any error with your original code, the vehicle is created successfully.
iPrestege Posted April 26, 2013 Author Posted April 26, 2013 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?
Castillo Posted April 26, 2013 Posted April 26, 2013 You mean that on your friend's MTA, it's created but not on yours?
iPrestege Posted April 26, 2013 Author Posted April 26, 2013 You mean that on your friend's MTA, it's created but not on yours? Exactly that what i mean !
Castillo Posted April 26, 2013 Posted April 26, 2013 Maybe it's a bug with the version you are using?
iPrestege Posted April 26, 2013 Author Posted April 26, 2013 Maybe it's a bug with the version you are using? Am not sure but not me alone! just on my friend work on any other mta doesn't work and some mta version doesn't show this error and some version show it! My ver : the latest nightly
PaiN^ Posted April 26, 2013 Posted April 26, 2013 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.
iPrestege Posted April 26, 2013 Author Posted April 26, 2013 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 .
TAPL Posted April 26, 2013 Posted April 26, 2013 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.
iPrestege Posted April 26, 2013 Author Posted April 26, 2013 Maybe it's a bug with the version you are using? Yes that work's i change my mta version and work's thanks .
xXMADEXx Posted April 26, 2013 Posted April 26, 2013 Maybe try to create the vehicle onResourceStart?
iPrestege Posted April 26, 2013 Author Posted April 26, 2013 Maybe it's a bug with the version you are using? Yes that work's i change my mta version and work's thanks .
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now