alowner Posted September 12, 2019 Share Posted September 12, 2019 Está ocorrendo um problema aqui (expected near 'dxHud') Essa mensagem entre parenteses foi oq apareceu no meu debugscript 3 ... enfim. Não consigo resolve-lo. Se alguém me ajudar irei ficar mto agradecido addEventHandler("onClientRender", root, function dxHud(. . .) local vida = getElementHealth (localPlayer) local colete = getPedArmor (localPlayer) local dinheiro = getPlayerMoney (localPlayer) local vidatual = (screenW * 0.0932) * (vida/100) local coleteatual = (screenW * 0.0932) * (colete/100) local procurado = getPlayerWantedLevel(getLocalPlayer()) local bank = convertNumber(getElementData(localPlayer, "player:Banco") or "0") end) Link to comment
XaskeL Posted September 12, 2019 Share Posted September 12, 2019 (edited) when you declare functions inside something like that, they should not be given names (the exception is creation as a variable). addEventHandler("onClientRender", root, function() local vida = getElementHealth (localPlayer) local colete = getPedArmor (localPlayer) local dinheiro = getPlayerMoney (localPlayer) local vidatual = (screenW * 0.0932) * (vida/100) local coleteatual = (screenW * 0.0932) * (colete/100) local procurado = getPlayerWantedLevel(getLocalPlayer()) local bank = convertNumber(getElementData(localPlayer, "player:Banco") or "0") end) For questions about the code, there is a special section:https://forum.multitheftauto.com/forum/71-scripting/ Edited September 12, 2019 by XaskeL 1 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