I already understand how array actually works, but not this kind of table.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function array(d) local array = {} for i = 1,d do array[i] = 0 end return array end player = {health = array(32),armor = array(32),speed = array(32)} addhook("always","aalways") addhook("second","ssecond") addhook("leave","lleave") function ssecond() for _, id in pairs(player(0,'table')) do player.money[id] = player.money[id] + 10 uphud(id) end end function lleave(id) 	player = {} end function uphud(id) parse('hudtxt2 '..id..' 1 "©000255000Money '..player.money[id]..'" 510 400 0') parse('hudtxt2 '..id..' 2 "©000255000Armor '..player.armor[id]..'" 510 420 0') parse('hudtxt2 '..id..' 3 "©000255000Speed '..player.speed[id]..'" 510 440 0') end
So, any suggestions?