Jump to content

fix


[DMC]

Recommended Posts

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
 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...