Forum

> > CS2D > Scripts > Two variables
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Two variables

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Two variables

UnkN
User Off Offline

Zitieren
Hello. How to make the action which operated for 32 people? But not using command "for abc=1,32 do" and not repeating "if a=b then abc[1]=1 abc[2]=1 abc[3]=1........" Please help. I work with two variables, and I need an answer.

alt Re: Two variables

UnkN
User Off Offline

Zitieren
user ohaz hat geschrieben
Why do you not want to use a for loop?

I testing: Write: for id=1,32 do ; for build=1,10000 do
And i launch. 23 FPS.
1× editiert, zuletzt 21.09.12 11:31:31

alt Re: Two variables

Klin
User Off Offline

Zitieren
Why the hell do you need to loop build 10000 times?
I don't know an other way. "For" is the best way. You can also try "while".

Klin

alt Re: Two variables

uaiek
User Off Offline

Zitieren
An example for "while ... do" loop:
Spoiler >


An example for "for ... do" loop:
Spoiler >


If you don't want to do those, use this brute-force solution:
Spoiler >


Without those ways, I don't know any other way.

alt Re: Two variables

omg
User Off Offline

Zitieren
if ur going up to 10k, theres probably something wrong with the way ur trying to solve a problem...
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht