skybad Posted February 17, 2015 Share Posted February 17, 2015 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
DNL291 Posted February 17, 2015 Share Posted February 17, 2015 Because line 3 and line 10 has errors. It should be like this: if (temp > 38) or (temp < 37) then P.S. Post in the Scripting section next time: https://forum.multitheftauto.com/viewforum.php?f=91 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