Builder Bob
Live free or don't
- Reaction score
- 249
JASS:
private function tAct takes nothing returns nothing
local timer t = CreateTimer()
call DestroyTimer(t)
set HandNum = HandNum + 1
call LeaderboardSetItemValue(HandProg,LeaderboardGetPlayerIndex(HandProg, Player(0)),HandNum)
call LeaderboardResizeBJ(HandProg)
endfunction
By not nulling t, the handle will never be recycled.
You could use any handle type though.