Aggressor Posted February 9, 2007 Share 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 Link to comment
lil Toady Posted February 9, 2007 Share 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? Link to comment
Aggressor Posted February 9, 2007 Author Share Posted February 9, 2007 lil Toady said: 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. Link to comment
lil Toady Posted February 9, 2007 Share Posted February 9, 2007 its $mta.vehicle($1,$4).name Link to comment
Aggressor Posted February 9, 2007 Author Share Posted February 9, 2007 lil Toady said: its $mta.vehicle($1,$4).name If i put that, it doesnt return anything at all, just player: Something wrong with mirc? Link to comment
Aggressor Posted February 9, 2007 Author Share Posted February 9, 2007 lil Toady said: 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. Link to comment
lil Toady Posted February 9, 2007 Share Posted February 9, 2007 Aggressor said: lil Toady said: 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 Link to comment
Aggressor Posted February 10, 2007 Author Share Posted February 10, 2007 lil Toady said: Aggressor said: lil Toady said: 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. Link to comment
Aggressor Posted February 10, 2007 Author Share Posted February 10, 2007 Were can i find some scripts for mtavc 0.5? Thanks Link to comment
ImJohnMclane Posted February 10, 2007 Share Posted February 10, 2007 Aggressor said: Were can i find some scripts for mtavc 0.5?Thanks - Make them by yourshelf. Link to comment
Aggressor Posted February 10, 2007 Author Share Posted February 10, 2007 ImJohnMclane said: Aggressor said: 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. Link to comment
Recommended Posts