20.02.2016, 18:59
pawn Код:
GetPlayerName(playerid, string, sizeof(string));
strmid(PlayerInfo[playerid][pRealName], string, 0, strlen(string), 64);
It isn't exactly the ideal function to use for string copying. It seems this is a habit commonly derived from Godfather edits. The problem is that strmid only copies characters up to strlen(string), so if anything was stored in pRealName previously, then any characters after strlen(string) would remain.
You could just use GetPlayerName to store the name directly:
pawn Код:
GetPlayerName(playerid, PlayerInfo[playerid][pRealName], MAX_PLAYER_NAME);