• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] HELP! How to Change RP name return chat remove underline OnPlayerText but return 0 ?
#4
(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;
}
  Reply


Messages In This Thread
RE: HELP! How to Change RP name return cphat remove underline name tag OnPlayerText ? - by Radical - 2021-04-22, 05:12 PM

Forum Jump: