Tokio Posted September 3, 2017 Posted September 3, 2017 local iras = getElementData(player, "typing") and " [ÍR...]" or "" dxDrawText ( playerName.." "..iras, sx+1, sy - offset, sx+1, sy - offset+1, tocolor(0,0,0,255), textscale*NAMETAG_TEXTSIZE, srfont, "center", "bottom", false, false, false, true, true ) What wrong?
Moderators IIYAMA Posted September 3, 2017 Moderators Posted September 3, 2017 There is nothing wrong with it, you just have to set it first.
Tokio Posted September 3, 2017 Author Posted September 3, 2017 1 minute ago, IIYAMA said: There is nothing wrong with it, you just have to set it first. I don't understand this What do you mean? 1
Moderators IIYAMA Posted September 3, 2017 Moderators Posted September 3, 2017 Elementdata is custom data you can attach to an element. With getElementData you get the data and with setElementData you attach the data. But if the data isn't attached then you can't get it. Understood?
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