Variables and Arrays? Explain (WIKI :( ) - 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)
+--- Thread: Variables and Arrays? Explain (WIKI :( ) (
/showthread.php?tid=334562)
Variables and Arrays? Explain (WIKI :( ) -
Andrew97 - 15.04.2012
Variables can Contain 1 Number only, Arrays Can Contain Many Numbers?
I can't understand what is thesse NUmbers?, What are the Benfits of this Numbres?, why Should I do Variables or arrays?
Re: Variables and Arrays? Explain (WIKI :( ) -
Cjgogo - 15.04.2012
Because you will need them later,at the "pawn" shop.
Re: Variables and Arrays? Explain (WIKI :( ) -
Andrew97 - 15.04.2012
new Test[MAX_PLAYERS];
what this Means?
What
new Means?
What TEST Means?
What [MAX_PLAYERS]; Means?
Re: Variables and Arrays? Explain (WIKI :( ) -
Cjgogo - 15.04.2012
:O,what the bloody "pawn" shop,wikipedia clearly explains what those piecce of codes are,really now
Re: Variables and Arrays? Explain (WIKI :( ) -
nilanjay - 15.04.2012
Max_Players means the totalk amount of player a server can hold.
Example
pawn Код:
#define MAX_PLAYERS 500 // this means that your server can take up to 500 players, not more then that
"new" means that you are creating a new varibale I guess which can be used as a code.
Example
pawn Код:
new Test[MAX_PLAYERS]; // here u have created a variable called Test which hold MAX_PLAYERS