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)
+--- Thread: Question (
/showthread.php?tid=393361)
Question -
Eugene. - 18.11.2012
What #define MAX_SLOTS does?
Re: Question -
ViniBorn - 18.11.2012
Probably define the maximum number of players.
Re: Question -
XtremeR - 18.11.2012
it will define the Max Slots of the server, you can change it if you get more slots..
for example u have a server with 35 slots u will change it to #define MAX_SLOTS 35
and same to other numbers..
Re: Question -
Sting. - 18.11.2012
Yes exactly. It confirms the max players for the server.
Re: Question -
Black Wolf - 18.11.2012
but i think MAX_PLAYERS works the same. and we dont need to define it.
Re: Question -
Ballu Miaa - 18.11.2012
Depends upon your game mode mate. MAX_SLOTS can be a maximum slots for anything! Post the line where you find it!
Re: Question -
Eugene. - 18.11.2012
Quote:
#define MAX_SLOTS 48
new NotMoving[MAX_PLAYERS];
new WeaponID[MAX_PLAYERS];
new CheckCrouch[MAX_PLAYERS];
new Ammo[MAX_PLAYERS][MAX_SLOTS];
|
Is any possible way that this thing may cause this problem ?:
https://sampforum.blast.hk/showthread.php?tid=392961
Re: Question -
cessil - 18.11.2012
defining is like creating a place holder, for example I could do
Now when I use the cost of the pistol anywhere in my script I can use COST_PISTOL instead of typing a number.
When I compile the script it will replace all the COST_PISTOL's in my script to 500, so if I want to change the price of the pistol in the future I can just change the define line and recompile.