MAX_PlAYERS_NAME. New
#3

A string (array) should have a constant size to store any data (text). A player's name can be up to 24 characters and so is defined. However, you will receive an error for rejected nickname if length exceeds 20 characters upon joining a server. So if you wanted to re-define it, you'd need to bare in mind the NULL terminator.
pawn Код:
#undef MAX_PLAYER_NAME
#define MAX_PLAYER_NAME 21
new declared a new variable. For more: https://sampwiki.blast.hk/wiki/Scripting_Basics
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: 1 Guest(s)