Jump to content

dxDrawText center


Matevsz

Recommended Posts

Posted

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.

Posted

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

Posted
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"

Posted
You are missing arguments at dxDrawText.

Ever heard of 'Optional arguments' ?

Dude he means there is no tocolor argument :P

"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"

Posted

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 :wink:

 DUyJ810.gif

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...