Forum

> > CS2D > Scripts > Two variables
Forums overviewCS2D overview Scripts overviewLog in to reply

English Two variables

7 replies
To the start Previous 1 Next To the start

old Two variables

UnkN
User Off Offline

Quote
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.

old Re: Two variables

UnkN
User Off Offline

Quote
user ohaz has written
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.
edited 1×, last 21.09.12 11:31:31 am

old Re: Two variables

Klin
User Off Offline

Quote
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

old Re: Two variables

uaiek
User Off Offline

Quote
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.

old Re: Two variables

omg
User Off Offline

Quote
if ur going up to 10k, theres probably something wrong with the way ur trying to solve a problem...
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview