Gameraap Posted September 19, 2010 Posted September 19, 2010 (edited) Fixed Edited September 19, 2010 by Guest
Castillo Posted September 19, 2010 Posted September 19, 2010 you failed while adding event handler, you put OnPlayerVehicleEnter and must be onPlayerVehicleEnter. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Gameraap Posted September 19, 2010 Author Posted September 19, 2010 you failed while adding event handler, you put OnPlayerVehicleEnter and must be onPlayerVehicleEnter. Thx!
Gameraap Posted September 19, 2010 Author Posted September 19, 2010 (edited) Fixed Edited September 19, 2010 by Guest
Gameraap Posted September 19, 2010 Author Posted September 19, 2010 Don't double post! And it's okay. Its not a double post! And the script is not ok
dzek (varez) Posted September 19, 2010 Posted September 19, 2010 https://wiki.multitheftauto.com/wiki/OnPlayerVehicleExit check 1st argument, and use it, instead of getting ped occupied veh. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Gameraap Posted September 20, 2010 Author Posted September 20, 2010 (edited) Whats wrong here? Fixed! Edited September 21, 2010 by Guest
Moderators Zango Posted September 20, 2010 Moderators Posted September 20, 2010 Whats wrong here? function outcar ( ) theVehicle = getPedOccupiedVehicle ( source ) if ( theVehicle ) then if isVehicleLocked ( theVehicle ) then setVehicleLocked ( theVehicle , false ) outputChatBox ( "#C6FE0D[unlock] Your car has been unlocked",source, 255, 255, 255, true ) else outputChatBox ( "#C6FE0D[unlock] Failed Your car was already unlocked",source, 255, 255, 255, true ) end end end addEventHandler ( "onPlayerVehicleExit", getRootElement(), outcar ) I don't understand the logic here, you check if a dude is in a vehicle on vehicle exit? It's like checking if your pet is floating in your bathtub while you're holding it
Gameraap Posted September 20, 2010 Author Posted September 20, 2010 (edited) I want check when you leave your car and the lock is of. than he say: outputChatBox ( "#C6FE0D[unlock] Failed Your car was already unlocked",source, 255, 255, 255, true ) but when the lock was on he say outputChatBox ( "#C6FE0D[unlock] Your car has been unlocked",source, 255, 255, 255, true ) Edited September 21, 2010 by Guest
dzek (varez) Posted September 20, 2010 Posted September 20, 2010 I Hate when i have to quite myself again, because some ignorant is ignoring my answer to his problems... https://wiki.multitheftauto.com/wiki/OnPlayerVehicleExitcheck 1st argument, and use it, instead of getting ped occupied veh. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Towncivilian Posted September 20, 2010 Posted September 20, 2010 Gameraap, why did you remove your earlier posts' contents? Please don't do that in the future. Somebody else may have the same issue in the future and wouldn't be able to search for it. Have problems running MTA or are experiencing crashes? See this thread for help!
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