Percent sign
#4

Код:
public OnPlayerText(playerid, text[])
{
  new perstring[128], PlayerNM[MAX_PLAYER_NAME];
  GetPlayerName(playerid, PlayerNM, sizeof(PlayerNM));
  for(new percentsign; percentsign < 256; percentsign++)
  {
    if(text[percentsign] == '%') text[percentsign] = '%%';
  }
  format(perstring, sizeof(perstring), "%s: %s", PlayerNM, text);
  return 1;
}
Reply


Messages In This Thread
Percent sign - by dubyabeast - 12.06.2013, 08:48
Re: Percent sign - by Vince - 12.06.2013, 11:30
Re: Percent sign - by dubyabeast - 12.06.2013, 22:16
Re: Percent sign - by feartonyb - 12.06.2013, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)