SA-MP Forums Archive
%c - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: %c (/showthread.php?tid=120790)



%c - Mikep. - 13.01.2010

%c is used in format() etc. to replace it with a character via it's ID, but how do I know what ID to use for example the Trademark symbol (™)?


Re: %c - Joe Staff - 13.01.2010

pawn Код:
#include <a_samp>
OnFilterScriptInit()
{
  for(new o;o<256;o++)//Change this number to be higher if there's more
  {
    printf("%d = %c",o,o);
  }
  return 1;
}
Just run that as a filterscript and it will print it into the console/log


Re: %c - Think - 13.01.2010

joe i just did that lol before you posted you meany.

[10:36:34] ™ i = 153


Re: %c - Mikep. - 13.01.2010

I know you can do that, but is there a list anywhere?


Re: %c - BlueG - 13.01.2010

Quote:
Originally Posted by Mikep.
I know you can do that, but is there a list anywhere?
Yes, just have a look at a ASCII-table.

http://www.torsten-horn.de/techdocs/ascii.htm