Sucrilhex Posted July 14, 2020 Posted July 14, 2020 Olá, estou fazendo um sistema de revistar, lá mostra as armas if Armamentos == 31 then dxDrawText("M4: ✔", 105, 218, 216, 240, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) else dxDrawText("M4: ✖", 105, 218, 216, 240, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) end quando eu não tenho a m4 mostra o segundo dx normal, só que quando eu tenho tá mostrando os dois, alguem sabe o que pode ser?
ber Posted July 15, 2020 Posted July 15, 2020 (edited) Tente assim: if Armamentos == 31 then local stats = ✔ else local stats = ✖ end dxDrawText("M4: "..stats, 105, 218, 216, 240, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, false, false) Edited July 15, 2020 by ber
DNL291 Posted July 15, 2020 Posted July 15, 2020 Como o Gw8 disse, deve ter outro código com esse texto DX. Nesse trecho de código não tem como mostrar ambos os textos. @ber 'stats' não irá retornar um valor válido (string), o valor precisa estar entre aspas. 1 Please do not PM me with scripting related question nor support, use the forums instead.
Sucrilhex Posted July 19, 2020 Author Posted July 19, 2020 On 15/07/2020 at 13:35, DNL291 said: Como o Gw8 disse, deve ter outro código com esse texto DX. Nesse trecho de código não tem como mostrar ambos os textos. @ber 'stats' não irá retornar um valor válido (string), o valor precisa estar entre aspas. não tem em nenhum outro lugar !
DNL291 Posted July 20, 2020 Posted July 20, 2020 Mostre o código completo, se possível. Please do not PM me with scripting related question nor support, use the forums instead.
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