Matevsz Posted May 18, 2015 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.
Mann56 Posted May 18, 2015 Posted May 18, 2015 Simply because textRadio it's not defined here. Maybe this is a part of his code? Post your full code
MIKI785 Posted May 19, 2015 Posted May 19, 2015 You are missing arguments at dxDrawText. Ever heard of 'Optional arguments' ?
Mann56 Posted May 19, 2015 Posted May 19, 2015 You are missing arguments at dxDrawText. Ever heard of 'Optional arguments' ? Dude he means there is no tocolor argument
#RooTs Posted May 19, 2015 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
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