Forum

> > CS2D > Scripts > How to declare variables correctly?
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to declare variables correctly?

1 reply
To the start Previous 1 Next To the start

old Re: How to declare variables correctly?

ohaz
User Off Offline

Quote
You don't really need to declare variables in Lua.
You can do it though:
1
2
3
j = 10 --global variable
global i = 11 -- global variable
local k = 9 -- local variable
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview