Jump to content

Error: Unexpected symbol near '<'


Recommended Posts

Hello im getting this error in the code Unexpected symbol near '<' on the line 3, 10 theres is the code:

function checktemp(thePlayer) 
local temp = getElementData(thePlayer,"temperature") 
if temp > 38 or < 37 then 
    setTimer(sangramento,10000,0) 
end 
end 
  
function sangramento(thePlayer) 
local temp = getElementData(thePlayer,"temperature") 
if temp > 38 or < 37 then 
    outputChatBox("[ATENÇÃO]Você tem que usar um heat pack, a sua temperatura não está a 37Graus",thePlayer) 
    outputChatBox("[ATENÇÃO]Sua temperatura: ".. getElementData(thePlayer,"temperature") .." Você poderá morrer, caso não normalise.",thePlayer) 
    setElementData(thePlayer,"blood",getElementData(thePlayer,"blood") - 10) 
    checarmorte() 
else 
    cancelEvent() 
end 
end 
  
function checarmorte(thePlayer) 
if temp >= 41 or temp <= 30 then 
    KillPed(thePlayer,thePlayer) 
    setElementData(thePlayer,"blood",-666) 
end 
end 

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