Drakath Posted December 15, 2013 Posted December 15, 2013 Why is the score 0 for all players in game monitor scores? Account data is: 'kills' and Element data is 'Zombie kills'. It works fine in game scoreboard.
Castillo Posted December 15, 2013 Posted December 15, 2013 Because, how can game monitor know which data to use as score?
Drakath Posted December 15, 2013 Author Posted December 15, 2013 function load() local kills = getAccountData(getPlayerAccount(source),"kills") if kills then setElementData(source,"Zombie kills",kills) setPlayerAnnounceValue ( source, "Zombie kills", kills ) else setElementData(source,"Zombie kills",0) end end addEventHandler("onPlayerLogin",root,load) Will this work?
TAPL Posted December 15, 2013 Posted December 15, 2013 i can't, game monitor is dead and not updated.
Sasu Posted December 15, 2013 Posted December 15, 2013 function load() local kills = getAccountData(getPlayerAccount(source),"kills") if kills then setElementData(source,"Zombie kills",kills) setPlayerAnnounceValue ( source, "score", kills ) else setElementData(source,"Zombie kills",0) end end addEventHandler("onPlayerLogin",root,load) Try it. I think you cant change the column's name.
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