1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook("menu","menu123")
function menu123(id,ttl,btn)
if ttl:sub(1,3)=="Buy" then
	if btn == 1 then
		local g=ttl:sub(11,11)
		if something[id] >= hs[g][3] then
			...
		end
	end
end
1
if something[id] >= hs[g][3] then
1
local g=ttl:sub(11,11)
1
local g=1
hs is table
1
2
3
2
3
hs={{}}
hs[1]={"h1","hw1",2500,14,8,16,8}
...
someone have answer?
edited 1×, last 07.08.11 06:36:56 pm
Error with table
1 
Offline