Forum

> > CS2D > General > Global Variable
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Global Variable

2 replies
To the start Previous 1 Next To the start

old closed Global Variable

gabpro
User Off Offline

Quote
I try to search how to make global arrays,but I not find...

How to make a Global Variable?
*Ok,im noob,you dont need to post this*
edited 1×, last 21.04.10 03:17:00 am

old Re: Global Variable

DC
Admin Off Offline

Quote
it just takes a few seconds to find the solution with google.
you just have to declare it outside a function to make it global.

1
2
3
4
5
myglobal=1
function test
	myglobal=2
end
test

the global variable myglobal will now have the value 2.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview