Aggressor Posted February 9, 2007 Posted February 9, 2007 Hey, I have my server & script running, but the !vehicle script doesnt work correctly. elseif ($3 == !vehicle && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true) { mta.say $1 $mta.name($1,$4) $+ 's vehicle: $mta.vehicle($1,$4).name Whats wrong about it? if i put. ($1,$4).vehicle it only returns the number. Thx for help
lil Toady Posted February 9, 2007 Posted February 9, 2007 that's cause mta.vehicle alias does not have an .vehicle propertie, so it returns just mta.vehicle (its id), what for you want to put that?
Aggressor Posted February 9, 2007 Author Posted February 9, 2007 that's cause mta.vehicle alias does not have an .vehicle propertie, so it returns just mta.vehicle (its id), what for you want to put that? Example: if someone is in a car, and i put !vehicle 4, so it displays the players car. Like Stinger, or Apache.
Aggressor Posted February 9, 2007 Author Posted February 9, 2007 its $mta.vehicle($1,$4).name If i put that, it doesnt return anything at all, just player: Something wrong with mirc?
Aggressor Posted February 9, 2007 Author Posted February 9, 2007 hmm, Admin+ on? Yes, if put its $mta.vehicle($1,$4).vehicle, its returning number of the car (only the ID), but i want whole vehicle name.
lil Toady Posted February 9, 2007 Posted February 9, 2007 hmm, Admin+ on? Yes, if put its $mta.vehicle($1,$4).vehicle, its returning number of the car (only the ID), but i want whole vehicle name. damn told you that $mta.vehicle has no .vehicle prop, cant you read? it will return the same as just $mta.vehicle, you need $mta.vehicle($1,$4).name to return the name of the vehicle If even $mta.vehicle($1,$4).name doesnt work make sure that you have original mta.data.ini in your mtama dir
Aggressor Posted February 10, 2007 Author Posted February 10, 2007 hmm, Admin+ on? Yes, if put its $mta.vehicle($1,$4).vehicle, its returning number of the car (only the ID), but i want whole vehicle name. damn told you that $mta.vehicle has no .vehicle prop, cant you read? it will return the same as just $mta.vehicle, you need $mta.vehicle($1,$4).name to return the name of the vehicle If even $mta.vehicle($1,$4).name doesnt work make sure that you have original mta.data.ini in your mtama dir Ok thanks, yes i read your post, it was mta.data.ini that was corrupted somehow. Now it works like it should.
Aggressor Posted February 10, 2007 Author Posted February 10, 2007 Were can i find some scripts for mtavc 0.5? Thanks
ImJohnMclane Posted February 10, 2007 Posted February 10, 2007 Were can i find some scripts for mtavc 0.5?Thanks - Make them by yourshelf.
Aggressor Posted February 10, 2007 Author Posted February 10, 2007 Were can i find some scripts for mtavc 0.5?Thanks - Make them by yourshelf. yourshelf? ok. I thought maybe theres a website that contains some script.
Recommended Posts