SA-MP Forums Archive
Question Info: MAX_PLAYER_NAME - 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 Info: MAX_PLAYER_NAME (/showthread.php?tid=354470)



Question Info: MAX_PLAYER_NAME - Speed++ - 26.06.2012

The max player name is 24...

but in the various servers, you can not enter with 24 characters, the limit of characters is 20, so.. why ?


Re: Question Info: MAX_PLAYER_NAME - Kindred - 26.06.2012

I guess people want the limit to be 20, kind of self explanatory.


Re: Question Info: MAX_PLAYER_NAME - -CaRRoT - 26.06.2012

PHP код:
#undef MAX_PLAYER_NAME 
        #define MAX_PLAYER_NAME 20 
Have fun


Re: Question Info: MAX_PLAYER_NAME - Kindred - 26.06.2012

He never asked for how to do it, he asked why they did it.

So, if you really want to know, ask the owners of the server, or a scripter for them.


Re: Question Info: MAX_PLAYER_NAME - Speed++ - 26.06.2012

Quote:
Originally Posted by Kindred
Посмотреть сообщение
He never asked for how to do it, he asked why they did it.

So, if you really want to know, ask the owners of the server, or a scripter for them.
yes, but in all servers of sa-mp the limit is 20, is a bug ?


Re: Question Info: MAX_PLAYER_NAME - FUNExtreme - 26.06.2012

Some characters count for 2 if I recall correctly. I think "[" is one of them


Re: Question Info: MAX_PLAYER_NAME - Makaveli93 - 26.06.2012

Maybe some of their variables involving player names are set to be 21, so I guess that's the reason. Also, 24 characters is kinda long. It's really a personal preference.


Re: Question Info: MAX_PLAYER_NAME - Vince - 26.06.2012

SetPlayerName can support up to 24 characters. That's the only reason.


Re: Question Info: MAX_PLAYER_NAME - Makaveli93 - 26.06.2012

Quote:
Originally Posted by FUNExtreme
Посмотреть сообщение
Some characters count for 2 if I recall correctly. I think "[" is one of them
Yes, you're right, some foreign characters take two letter space.


Re: Question Info: MAX_PLAYER_NAME - Speed++ - 26.06.2012

Thanks all.