EMillion Posted December 2, 2017 Share Posted December 2, 2017 (edited) Quote function onPlayerQuitFromServer() if isPlayerLogged(source) then declinePVPForPlayer(source) addValue(source,"timePlayed",getTickCount()-getElementData(source,"timeLogged")) setElementData(source,"timeLogged",getTickCount()) end end addEventHandler("onPlayerQuit",getRootElement(),onPlayerQuitFromServer) function makeScoreboardColumns() call(getResourceFromName("scoreboard"),"scoreboardAddColumn","Cash",getRootElement(),70) call(getResourceFromName("scoreboard"),"scoreboardAddColumn","Points",getRootElement(),70) call(getResourceFromName("scoreboard"),"scoreboardAddColumn","Rank",getRootElement(),70) end function refreshScoreboard(thePlayer) if isPlayerLogged(thePlayer) then local playerCash = getPlayerData(thePlayer,"cash") local playerPoints = getPlayerData(thePlayer,"EXP") setElementData(thePlayer,"Cash","$"..playerCash) setElementData(thePlayer,"Points",playerPoints) else setElementData(thePlayer,"Cash","Guest") setElementData(thePlayer,"Points","Guest") setElementData(thePlayer,"Rank","?") end end ERROR: userpanel/core_server.lua:96: call: failed to call 'scoreboard [20:27:04] ERROR: userpanel/core_server.lua:97: call: failed to call 'scoreboard [20:27:04] ERROR: userpanel/core_server.lua:98: call: failed to call 'scoreboard [20:27:04] ERROR: userpanel/core_server.lua:98: call: failed to call 'scoreboard Edited December 2, 2017 by EMillion Link to comment
Bonus Posted December 2, 2017 Share Posted December 2, 2017 Try to start the scoreboard resource, does it work? Link to comment
EMillion Posted December 3, 2017 Author Share Posted December 3, 2017 It's work but country won't show in scoreboard @Bonus Link to comment
Storm-Hanma Posted December 3, 2017 Share Posted December 3, 2017 Did u given separate code for countries ? All country flags ? Link to comment
EMillion Posted December 5, 2017 Author Share Posted December 5, 2017 @Khadeer143 yes 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