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.
Walid Posted May 18, 2015 Posted May 18, 2015 Simply because textRadio it's not defined here. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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 "When i'll grow older, i'll be stronger, they'll call me freedom, just like a waving flag" "Have confidence in yourself, no problem is impossible in life"
MIKI785 Posted May 19, 2015 Posted May 19, 2015 You are missing arguments at dxDrawText. Ever heard of 'Optional arguments' ? Lua Scripter Owner of mshost.cz MTA portal.
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 "When i'll grow older, i'll be stronger, they'll call me freedom, just like a waving flag" "Have confidence in yourself, no problem is impossible in life"
#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