Klesh Posted January 16, 2011 Share Posted January 16, 2011 Hi community i need to know what is wrong with this and why dont show in scoreboard. exports.scoreboard:addScoreboardColumn('Money') function setstats () local account = getPlayerAccount (source) local money = getPlayerMoney ( source ) setElementData ( source, "Money", "$" .. money ) end end addEventHandler ( "onPlayerSpawn", getRootElement(), setstats ) addEventHandler ( "onPlayerLogin", getRootElement(), setstats ) end Link to comment
SDK Posted January 16, 2011 Share Posted January 16, 2011 Seems like you forgot to remove some end's. Use /debugscript 3 to detect loading errors. Link to comment
proracer Posted January 16, 2011 Share Posted January 16, 2011 Try it. exports.scoreboard:addScoreboardColumn('Money') function setstats () local account = getPlayerAccount (source) local money = getPlayerMoney ( source ) setElementData ( source, "Money", "$" .. money ) end addEventHandler ( "onPlayerSpawn", getRootElement(), setstats ) addEventHandler ( "onPlayerLogin", getRootElement(), setstats ) 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