Matevsz Posted May 18, 2015 Share Posted May 18, 2015 Hello, when I push the "R" is you can not see the names of the radio. debugscript 3 Warning Bad argument @ 'dxDrawText' [expected string at argument 1, got nil] function renderRadio () dxDrawText (textRadio,0,0,sx,96,-922761116,2,"sans","center","center",false,false,true) end addEventHandler ("onClientRender",getRootElement(),renderRadio) In this line is error. Link to comment
Walid Posted May 18, 2015 Share Posted May 18, 2015 Simply because textRadio it's not defined here. Link to comment
Mann56 Posted May 18, 2015 Share Posted May 18, 2015 Simply because textRadio it's not defined here. Maybe this is a part of his code? Post your full code Link to comment
Enargy, Posted May 19, 2015 Share Posted May 19, 2015 You are missing arguments at dxDrawText. Link to comment
MIKI785 Posted May 19, 2015 Share Posted May 19, 2015 You are missing arguments at dxDrawText. Ever heard of 'Optional arguments' ? Link to comment
Mann56 Posted May 19, 2015 Share Posted May 19, 2015 You are missing arguments at dxDrawText. Ever heard of 'Optional arguments' ? Dude he means there is no tocolor argument Link to comment
#RooTs Posted May 19, 2015 Share Posted May 19, 2015 try this function renderRadio () dxDrawText(textRadio,0,0,0,0, tocolor(255 ,255 ,255 ,255), 1.0, "default-bold", "center", "center", false, false, false) end addEventHandler ("onClientRender",getRootElement(),renderRadio) then take their position of screen X and Y 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