MAX_PlAYERS_NAME. New
#2

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.
Код:
if(GetPlayerVehicles(playerid) >= MAX_PLAYER_VEHICLES)
			{
				ShowErrorDialog(playerid, "You can't buy any more vehicles! Max: " #MAX_PLAYER_VEHICLES );
				return 1;
			}
With new for example new Loggedin; you define a variable or create it a playervariable etc. I suggest you reading a pawn tutorial.
Reply


Messages In This Thread
MAX_PlAYERS_NAME. New - by Osamakurdi - 18.12.2017, 13:12
Re: MAX_PlAYERS_NAME. New - by jasperschellekens - 18.12.2017, 13:30
Re: MAX_PlAYERS_NAME. New - by Konstantinos - 18.12.2017, 13:39
Re: MAX_PlAYERS_NAME. New - by Osamakurdi - 31.12.2017, 20:21
Re: MAX_PlAYERS_NAME. New - by rfr - 31.12.2017, 20:23

Forum Jump:


Users browsing this thread: 3 Guest(s)