TorNix~|nR Posted March 20, 2017 Share Posted March 20, 2017 (edited) Hello guys! I have problem with my script, anyone help? Level Server exports.scoreboard:addScoreboardColumn ( "Level", getRootElement(), 9, 0.07 ) function scoreLevel () local account = getPlayerAccount(source) local level = getElementData(source,"level") or 0 if isGuestAccount ( account ) then setElementData(source, "level",":img/Guest.png") else local test = ":img/"..tostring(level)..".png" setElementData(source, "level", test and {type = "image", src = test, height = 12, width = 16} or "N/A") end end addEventHandler("onPlayerSpawn", getRootElement(), scoreLevel) Scoreboard Client Debug: attempt to index global 'column' (a nil value) elseif column.name == "Level" then dxDrawImage( topX+theX, y-s(0.5), 30, 30, content, 0, 0, 0, cWhite, drawOverGUI ) Edited March 20, 2017 by TorNix~|nR Link to comment
WASSIm. Posted March 21, 2017 Share Posted March 21, 2017 First remove your code en Scoreboard Client then change level to Level en setElementData 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