I’m working on my Evolve money system and for every playtime hour you have, you get “100 stars” in your balance

I ran some maths on evolve’s code to get:

[lua]

timer.Create( “EV_MoneyCheck”, 60, 0, function()

for _, ply in ipairs( player.GetAll() ) do

Balance = ply:GetProperty( “Money” )

PlayTime = ply:GetProperty( “PlayTime” )

timer.Simple(2,function()

Hours = PlayTime / 60 / 60

Hours2 = math.Round(Hours)

Hours3 = Hours2 * 100

Money2 = Balance + Hours3

ply:SetProperty( “Money”, Money2 ) end)

end

```
evolve:CommitProperties()
```

end )

[/lua]

That code above will not work, I know it wont but I am unsure how to fix it…

PlayTime in evolve’s standards is given in seconds so dividing by 60 twice give’s playtime in hours

Then I used a math.Round on the hours to give an increase of 1 everytime the hour goes up

Now I need to make it take ‘Balance’ and add 100 to it, everytime the playtime hour’s goes up

Hope that makes sense anyway…