Forum

> > CS2D > General > Global Variable
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Global Variable

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt geschlossen Global Variable

gabpro
User Off Offline

Zitieren
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*
1× editiert, zuletzt 21.04.10 03:17:00

alt Re: Global Variable

DC
Admin Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht