Lloyd Logan Posted January 17, 2013 Posted January 17, 2013 Hey, the errors this code outputs it : 69 attempt to compare number with boolean, and 68 bad pointer at getPlayerMoney function paynspray(hitElement) local money = getPlayerMoney(hitElement) if ( money > 1000 ) then outputChatBox("Please wait whilst we work on your vehicle!", hitElement) setTimer ( fixVehicle, 5000, 1, hitElement ) end end addEventHandler("onMarkerHit", dutymarker, paynspray, hitElement) If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
MR.S3D Posted January 17, 2013 Posted January 17, 2013 function paynspray(hitElement,matchingDimension) if (hitElement and getElementType(hitElement) == "player" and matchingDimension) then local money = getPlayerMoney(hitElement) if ( money>=1000 ) then outputChatBox("Please wait whilst we work on your vehicle!", hitElement) setTimer (fixVehicle, 5000, 1, getPedOccupiedVehicle(hitElement)) end end end addEventHandler("onMarkerHit", dutymarker, paynspray) Welcom to my server Q.5 Current game type in my server Drift my Email : [email protected] Programming level: 90%
Lloyd Logan Posted January 17, 2013 Author Posted January 17, 2013 Thank you very much! If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
MR.S3D Posted January 17, 2013 Posted January 17, 2013 You're welcome. Welcom to my server Q.5 Current game type in my server Drift my Email : [email protected] Programming level: 90%
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