Simple MAX_PLAYERS question
#5

If you use the first, you will be able to store one value in that one variable.

If you use the second, you will be able to store a value for every player in your server. This type of variable is called an array. You can access it by doing:

PHP код:
new Money[MAX_PLAYERS];
Money[playerid] = 500
You can then set a variable per individual player: useful for other systems.
Reply


Messages In This Thread
Simple MAX_PLAYERS question - by Supermaxultraswag - 16.01.2015, 16:12
Re: Simple MAX_PLAYERS question - by mahdi499 - 16.01.2015, 16:14
Re: Simple MAX_PLAYERS question - by Dignity - 16.01.2015, 16:15
Re: Simple MAX_PLAYERS question - by xVIP3Rx - 16.01.2015, 16:15
Re: Simple MAX_PLAYERS question - by Sithis - 16.01.2015, 16:16
Re: Simple MAX_PLAYERS question - by Supermaxultraswag - 17.01.2015, 11:22
Re: Simple MAX_PLAYERS question - by jackx3rx - 17.01.2015, 11:26

Forum Jump:


Users browsing this thread: 1 Guest(s)