[DMC] Posted September 27, 2010 Share Posted September 27, 2010 addEvent("buyfix", true) addEventHandler("buyfix", getRootElement(), function() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 15000 ) then takePlayerMoney(source, 15000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("*Vehicle Successfully Fixed", source, 255, 255, 0, true) outputChatBox("*Shop: "..getPlayerName(source).." has bought an repair for $15,000!",getRootElement(),0,255,0) account = getPlayerAccount(source) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end end ) 16: unexpected symbol near '>' Link to comment
12p Posted September 27, 2010 Share Posted September 27, 2010 addEvent("buyfix", true) addEventHandler("buyfix", getRootElement(), function() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 15000 ) then takePlayerMoney(source, 15000) fixVehicle( getPedOccupiedVehicle(source) ) outputChatBox("*Vehicle Successfully Fixed", source, 255, 255, 0, true) outputChatBox("*Shop: "..getPlayerName(source).." has bought a repair for $15,000!",getRootElement(),0,255,0) account = getPlayerAccount(source) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end end end -- you forgot to end the function at line 3 ) Link to comment
[DMC] Posted September 27, 2010 Author Share Posted September 27, 2010 ty for fast reply Link to comment
12p Posted September 27, 2010 Share Posted September 27, 2010 , was easy to find , I'm here to help . Link to comment
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