(2021-04-22, 04:48 PM)PutuSuhartawan Wrote: Sorry sir, I already have GetRPName (playerid) stock, what I asked was why my chat results when pressing enter still appeared like:
[TIMESTAMP] Name_Lastname: Chat
so why is that, sir?
Try this :
Code:
stock GetRPName(playerid)
{
? ? new name[MAX_PLAYER_NAME];
? ? GetPlayerName(playerid, name, MAX_PLAYER_NAME);
? ? for (new i; i <?MAX_PLAYER_NAME; i) {
? ? ? ? if (name[i] == '_') {
? ? ? ? ? ? name[i] = ' ';
? ? ? ? ? ? break;
? ? ? ? }
? ? }
? ? ??
? ? return name;
}