John_Scott Posted November 8, 2014 Share Posted November 8, 2014 Hi! I have a problem with the 'dxDrawText' function. I red in the wiki, if I change the color code argument '(tocolor, 0, 0, 0, 0)' to 'true', the text is colored by the HTML color codes, but if I do that, just get an error about placed boolean where integer requested. Code: dxDrawText ( "Killed: " .. murdered .. " +100", screenW / 2,100, screenWidth, screenHeight, true, 1.02, "pricedown", "center", "center" ) How can I allow these color formats then? Thanks for helping! Link to comment
ixjf Posted November 8, 2014 Share Posted November 8, 2014 It's not the color parameter that it is referring to, it is the colorCoded parameter. See dxDrawText. Link to comment
John_Scott Posted November 8, 2014 Author Share Posted November 8, 2014 It's not the color parameter that it is referring to, it is the colorCoded parameter. See dxDrawText. I can't understand. Where need to place 'true' then? Link to comment
MIKI785 Posted November 8, 2014 Share Posted November 8, 2014 Just check the syntax (dxDrawText)... it's the 14th argument. Link to comment
John_Scott Posted November 8, 2014 Author Share Posted November 8, 2014 Just check the syntax (dxDrawText)... it's the 14th argument. Oh, thank you very much! 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