SA-MP Forums Archive
Just a little question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Just a little question (/showthread.php?tid=64806)



Just a little question - TheAngel105 - 07.02.2009

What are the MAX_PLAYERS, MAX_OBJECTS, MAX_VEHICLES etc... after a new variable?
For example:
Код:
new blabla[MAX_PLAYERS];



Re: Just a little question - CracK - 07.02.2009

MAX_PLAYERS, MAX_OBJECTS, MAX_VEHICLES are defined in a_samp.inc.
For ex. MAX_PLAYERS is defined as 200.


Re: Just a little question - TheAngel105 - 07.02.2009

So what can I do with that?


Re: Just a little question - Nero_3D - 07.02.2009

its just a number hidden behind a Name
how CracKman already told MAX_PLAYERS is 200
and if you do
pawn Код:
new blabla[MAX_PLAYERS];
it will be an array with 200 cells
pawn Код:
new blabla[200];



Re: Just a little question - TheAngel105 - 07.02.2009

Ok I understand now, thanks .