print and \n
#4

It's possible to do a new print function in a plugin, using the c printf function, which doesn't happend a newline character to the string. Smething like that should work:

Код:
static cell AMX_NATIVE_CALL n_print2(AMX *a, cell *p)
{
  const char *s;
  amx_StrParam(a, p[1], s);
  printf(s);
  return true;
}
Problem: this basic code will not write into the server_log.txt, it is fixable but 'illegal'..
Reply


Messages In This Thread
print and \n - by ledzep - 15.08.2009, 20:59
Re: print and \n - by woot - 15.08.2009, 21:02
Re: print and \n - by ledzep - 15.08.2009, 21:04
Re: print and \n - by fastblast - 15.08.2009, 21:43
Re: print and \n - by ledzep - 17.08.2009, 06:56

Forum Jump:


Users browsing this thread: 2 Guest(s)