1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Wood=Array(32,0)
Cash=Array(32,0)
addhook("serveraction","s_act")
function s_act(id,button)
	if button == 1 then
		menu(id,"Get Wood","Get Cash")
	end
end
addhook('menu','menu')
function menu(id,tile,button)
	if tile=="Get Wood" then
	test={Wood[id],Cash[id]}
		if button~= 0 then
			test[button]=test[button]+20
		end
	end
end
test[button] is equal to Wood[id]
But Wood[id] didn't change
.HelpI need Wood[id] to increased by 20
Same with Cash[id]
Change value in table
1 
Offline