22.12.2009, 20:35
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. |