[HELP] How to do this? [Unsolved]
#10

Quote:
Originally Posted by Zamaroht
The max lenght of a line in sa-mp is 128 characters. But you have to take into account the final three dots, the player's name and the parenthesis.
The simple way:
Set #define MAXLEN 97

Why?
128 - MAX_PLAYER_NAME (24) - 3 (for the starting double parenthesis and the space) - 4 (for the ending space and three dots) = 97

The harder way:
Do the same as above, but make MAXLEN dinamic depending on the real lenght of the player name.
I tried to #define MAXLEN 97,it didn't do anything - i can't even see the dots when i write something longer than the samp def.
Reply


Messages In This Thread
[HELP] How to do this? [Unsolved] - by Nakash - 22.12.2009, 12:40
Re: [HELP] How to do this? - by M4S7ERMIND - 22.12.2009, 13:34
Re: [HELP] How to do this? - by Nakash - 22.12.2009, 14:15
Re: [HELP] How to do this? - by M4S7ERMIND - 22.12.2009, 16:34
Re: [HELP] How to do this? - by JoeDaDude - 22.12.2009, 16:55
Re: [HELP] How to do this? - by Kurence - 22.12.2009, 17:06
Re: [HELP] How to do this? - by kmzr - 22.12.2009, 17:16
Re: [HELP] How to do this? - by Nakash - 22.12.2009, 19:20
Re: [HELP] How to do this? - by Zamaroht - 22.12.2009, 19:31
Re: [HELP] How to do this? - by Nakash - 22.12.2009, 20:35

Forum Jump:


Users browsing this thread: 2 Guest(s)