HaRe hat geschrieben
head600 hat geschrieben
function initArray(m)
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
yemek1=initArray(32)
yemek=initArray(32)
addhook("minute","asd")
function asd(id)
yemek1[id]=yemek1[id]+10
yemek[id]=yemek[id]+10
parse('hudtxt2 '..id..' 4 "Susuzluk: '..yemek1[id]..'" 0 155')
parse('hudtxt2 '..id..' 4 "Aclik: '..yemek[id]..'" 0 150')
end
addhook("spawn","dsa")
function dsa(id)
parse('hudtxt2 '..id..' 4 "Susuzluk: '..yemek1[id]..'" 0 155')
parse('hudtxt2 '..id..' 4 "Aclik: '..yemek[id]..'" 0 150')
end
whats wrong??
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
yemek1=initArray(32)
yemek=initArray(32)
addhook("minute","asd")
function asd(id)
yemek1[id]=yemek1[id]+10
yemek[id]=yemek[id]+10
parse('hudtxt2 '..id..' 4 "Susuzluk: '..yemek1[id]..'" 0 155')
parse('hudtxt2 '..id..' 4 "Aclik: '..yemek[id]..'" 0 150')
end
addhook("spawn","dsa")
function dsa(id)
parse('hudtxt2 '..id..' 4 "Susuzluk: '..yemek1[id]..'" 0 155')
parse('hudtxt2 '..id..' 4 "Aclik: '..yemek[id]..'" 0 150')
end
whats wrong??
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
addhook("minute","asd") function asd(id) 	for id = 1,32 do 		if (player(id,"exists")) then 			yemek1[id]=yemek1[id]+10 			yemek[id]=yemek[id]+10 			parse('hudtxt2 '..id..' 4 "Susuzluk: '..yemek1[id]..'" 0 155') 			parse('hudtxt2 '..id..' 4 "Aclik: '..yemek[id]..'" 0 150') 		end 	end end
this is work but i see only one
normal :
aclik : 0
susuzluk : 0
but i see only aclik : 0
pls test this...