Forum

> > CS2D > Scripts > xcounter[lcounter[id]] is that possible?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch xcounter[lcounter[id]] is that possible?

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt xcounter[lcounter[id]] is that possible?

loldlold123
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end

xcounter=initArray(32)
lcounter=initArray(32)

if xcounter[lcounter[id]]==1 then

is that possbile
1× editiert, zuletzt 20.07.11 21:49:07

alt Re: xcounter[lcounter[id]] is that possible?

EngiN33R
Moderator Off Offline

Zitieren
Of course it's possible. You can make it even
1
2
3
4
5
t1={{1,{1,{1,{1,1}}}},{1,{1,{1,{1,1}}}}}
t2={{2,{2,{2,{2,2}}}},{2,{2,{2,{2,2}}}}}
t3={{3,{3,{3,{3,3}}}},{3,{3,{3,{3,3}}}}}

if (t1[t2[t3[1][1][1][1][1]]]==1) then print("olol") end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht