Tokio Posted September 3, 2017 Share 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? Link to comment
Moderators IIYAMA Posted September 3, 2017 Moderators Share Posted September 3, 2017 There is nothing wrong with it, you just have to set it first. Link to comment
Tokio Posted September 3, 2017 Author Share 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 Link to comment
Moderators IIYAMA Posted September 3, 2017 Moderators Share 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? 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