Removing " _ " in player name help pls.!
#1

Код:
format(namadetag, sizeof(nametag), "{%06x} %s (%i)\n{DB816F}HP: %.0f {FFFFFF}- AR: %.0f", GetPlayerColor(i) >>> 8, playername, i, hp, armour);
Please tell me how to remove the " _ " in name its annoying xD, help pls.
Reply
#2

PHP код:
stock ConvertInRPStyle(player_name[MAX_PLAYER_NAME])
{
      for(new 
iMAX_PLAYER_NAMEi++)
      {
           if(
player_name[i] == '_')   player_name[i] = ' ';
      }
      return 
player_name;

PHP код:
format(nametagsizeof(nametag), "{%06x} %s (%i)\n{DB816F}HP: %.0f {FFFFFF}- AR: %.0f"GetPlayerColor(i) >>> 8ConvertInRPStyle(playername), ihparmour); 
Reply
#3

Quote:
Originally Posted by Amagida
Посмотреть сообщение
PHP код:
stock ConvertInRPStyle(player_name[MAX_PLAYER_NAME])
{
      for(new 
iMAX_PLAYER_NAMEi++)
      {
           if(
player_name[i] == '_')   player_name[i] = ' ';
      }
      return 
player_name;

PHP код:
format(nametagsizeof(nametag), "{%06x} %s (%i)\n{DB816F}HP: %.0f {FFFFFF}- AR: %.0f"GetPlayerColor(i) >>> 8ConvertInRPStyle(playername), ihparmour); 
Should've show the full name, but it only shows the first name

https://imgur.com/a/cTmhJ
Reply
#4

This is working Ok from me, i don't know why it shows only first name for you.
Reply
#5

Код:
stock RemoveUnderLine(name[MAX_PLAYER_NAME])
{
  for(new i; i < MAX_PLAYER_NAME; i++)
  {
    if(name[i] == '_') name[i] = ' ';
  }
  return name;
}
how about this?
Reply
#6

This code and mine, actually looks similiar. we can say, those are same.
Reply
#7

Quote:
Originally Posted by Amagida
Посмотреть сообщение
This code and mine, actually looks similiar. we can say, those are same.
Your server is running? may i able to check it?
Reply
#8

I don't own server.
Reply
#9

PHP код:
stock GetICName        playerid ) {
    new 
szICNameMAX_PLAYER_NAME+];
    
GetPlayerNameplayeridszICNamesizeofszICName ) );
    for( new 
i=0strlenszICName ); ++) {
        if( 
szICName] == '_' ) {
            
szICName] = ' ';
        }
    }
    return 
szICName;

Reply
#10

Код:
stock GetPlayerNameEx(playerid)
{
	new name[MAX_PLAYER_NAME + 1];
	GetPlayerName(playerid, name, sizeof(name));
 	for (new i = 0, len = strlen(name); i < len; i ++)
	 {
  		if (name[i] == '_') name[i] = ' ';
	}
	return name;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)