19.05.2018, 12:31
Ive just realised that my server is occasionally (and seemingly randomly) shortening players' names and I have no idea why (Or even which function to start with in order to find the problem). As far as I can tell it only happens to 1 player at a time and their name will remain shortened until they rejoin the server.
Has anybody encountered a problem similar to this before? a point in the right direction in where to find the cause of this would be a great help.
Example:
This player's name is Crazy.Ex, however it suddenly starts showing like this and wont revert back to his full name until he quits and rejoins the server:
Example of the way names are given to one of the functions:
From the player enum:
OnPlayerConnect:
EDIT: Their full name appears properly in the Tab playerlist, but shortened in commands like /info (Which use pName to get the player name)
Has anybody encountered a problem similar to this before? a point in the right direction in where to find the cause of this would be a great help.
Example:
This player's name is Crazy.Ex, however it suddenly starts showing like this and wont revert back to his full name until he quits and rejoins the server:
Example of the way names are given to one of the functions:
Код:
format(string, sizeof(string), "%s (%i) Has Paid $%i In Taxes.",PlayerInfo[playerid][pName],playerid,Taxes); SendClientMessageToAll(COLOR_SERVER_HELP_MSG, string);
Код:
pName[MAX_PLAYER_NAME],
Код:
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);