18.12.2017, 13:30
Max players name is usually used as max length of characters..
#define MAX_PLAYERS_NAME 20 will only allow 20 characters max i think.
Also you can use it like this:
#define MAX_PLAYER_VEHICLES 10 means that a player can not own more then 10 vehicles.
With new for example new Loggedin; you define a variable or create it a playervariable etc. I suggest you reading a pawn tutorial.
#define MAX_PLAYERS_NAME 20 will only allow 20 characters max i think.
Also you can use it like this:
#define MAX_PLAYER_VEHICLES 10 means that a player can not own more then 10 vehicles.
Код:
if(GetPlayerVehicles(playerid) >= MAX_PLAYER_VEHICLES) { ShowErrorDialog(playerid, "You can't buy any more vehicles! Max: " #MAX_PLAYER_VEHICLES ); return 1; }