MisterQuestions Posted November 16, 2014 Share Posted November 16, 2014 Nametag error? Hey can somebody say me whats wrong here and how to fix it? This should show over the nick a team or a rank if player is on the team named 'Advisory Racers' then will change to show their rank, and if he isn't on that team it will show the player team. Client-Side local r,g,b = 255,255,255 local rank = getElementData(player, "ACL") or "N/A" local team = getPlayerTeam(player) local UpperNickVariable = team if team then r,g,b = getTeamColor(team) elseif team == "Advisory Racers" then UpperNickVariable = rank else UpperNickVariable = team end dxDrawColoredText( UpperNickVariable.." \n"..getPlayerNametagText(player), sx - w, sy - oet, sx - w, sy, tocolor(r, g, b, a), {r,g,b,a} , NfontScale * textscale * NAMETAG_TEXTSIZE_N, Nfont, "center", "bottom", false, false, false, true) Link to comment
Bonsai Posted November 16, 2014 Share Posted November 16, 2014 /debugscript 3 Also, team is an element, not a name. Link to comment
MisterQuestions Posted November 16, 2014 Author Share Posted November 16, 2014 Hmm, i added getTeamName :v but still... Link to comment
MisterQuestions Posted November 16, 2014 Author Share Posted November 16, 2014 Attempt to concatename local 'UpperNickVariable' (a userdata value) 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