rublisk19 Posted October 9, 2012 Share Posted October 9, 2012 i have problem with script what add money every 10sec function addMoney () setElementData(source, "rpg.money", getElementData(source,"rpg.money") +10) end setTimer ( addMoney, 10000, 0) server error: attempt to perform arithmetic on a boolean value. Link to comment
Anderl Posted October 9, 2012 Share Posted October 9, 2012 setTimer( function() for index, player in next, getElementsByType 'player' do setElementData(player, 'rpg.exp', getElementData(player, 'rpg.exp') + 10) end end, 10000, 0 ) Link to comment
rublisk19 Posted October 9, 2012 Author Share Posted October 9, 2012 thanks it works ;] 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