How i can remove the "_"
#5

Quote:
Originally Posted by SpiderPork
pawn Код:
stock GetPlayerNameEx(playerid)
{
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  new str[MAX_PLAYER_NAME];
  strmid(str, name, 0, strlen(name), MAX_PLAYER_NAME);
  for(new i = 0; i < MAX_PLAYER_NAME; i++)
  {
    if (str[i] == '_') str[i] = ' ';
  }
  return str;
}
I found it somewhere on this forum and just copy pasted it.
Thank you very much,it works .
Nice only one problem:

C:\Documents and Settings\Owner\Desktop\arp.pwn(20332) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Owner\Desktop\arp.pwn(20332) : warning 202: number of arguments does not match definition

Line 20332: GetPlayerNameEx(playerid, sendername, sizeof(sendername));
Reply


Messages In This Thread
How i can remove the "_" - by Mr.Dzx - 16.02.2010, 11:20
Re: How i can remove the "_" - by Correlli - 16.02.2010, 11:25
Re: How i can remove the "_" - by Mr.Dzx - 16.02.2010, 11:28
Re: How i can remove the "_" - by SpiderPork - 16.02.2010, 11:32
Re: How i can remove the "_" - by Mr.Dzx - 16.02.2010, 11:38
Re: How i can remove the "_" - by Correlli - 16.02.2010, 11:39
Re: How i can remove the "_" - by Mr.Dzx - 16.02.2010, 11:41
Re: How i can remove the "_" - by Mr.Dzx - 16.02.2010, 18:04
Re: How i can remove the "_" - by Mr.Dzx - 17.02.2010, 11:57
Re: How i can remove the "_" - by Mr.Dzx - 18.02.2010, 04:04

Forum Jump:


Users browsing this thread: 1 Guest(s)