Forum

> > CS2D > General > debug my lua please
Forums overviewCS2D overviewGeneral overviewLog in to reply

English debug my lua please

2 replies
To the start Previous 1 Next To the start

old debug my lua please

FrozenDarq
User Off Offline

Quote
i make it
1
2
3
4
5
6
7
8
9
10
11
12
addhook("menu","hhh")
function hhh(id,baslik,buton)
if baslik == "Lusios Pizzas" then
if buton==1 and player(id,"money") >=1999 then
aclik[id]=aclik[id]+50
parse('hudtxt2 '..id..' 5 "Hungry: '..aclik[id]..'" 90 380 0')
 parse("setmoney "..id.." "..player(id, "money")-2000)
else
parse("msg "..npc[a].name..":You have not money")
end
end
end
but else to have problems please debug it

old Re: debug my lua please

MikuAuahDark
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("menu","hhh")
function hhh(id,baslik,buton)
	if baslik == "Lusios Pizzas" then
		if buton==1 then
			if player(id,"money") >=2000 then
				aclik[id]=aclik[id]+50
				parse('hudtxt2 '..id..' 5 "Hungry: '..aclik[id]..'" 90 380 0')
				parse("setmoney "..id.." "..player(id, "money")-2000)
			else
				msg2(id,string.char(169).."255000000You don't have enough money")
			end
		end
	end
end
i just fix your code because i can't understand your english
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview