Forum

> > CS2D > Scripts > Lua Question - Array Length
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Question - Array Length

2 replies
To the start Previous 1 Next To the start

old Lua Question - Array Length

Anders4000
User Off Offline

Quote
Hello!

Can anyone help me with a LUA Array?

Lets say I have the array "Kills[5]".
Then I want a For-statement to run 5 times.
Cus that's the amount of variables there is in the Kills array. (Or is it called a table?)

How do i get the amount of vars in an array?

Eg:
Kills[10] will return 10
and Kills[6] will return 6?

Thanks in advance!
- Anders4000
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview