stock printc(const format[], {Float,_}:...)
#1

Код:
stock printc(const format[], {Float,_}:...)
{
  new Hour, Minute, Second;
	gettime(Hour, Minute, Second);
	new cf[100];
	format(cf, 100, format, {Float,_}:...);
	if( fexist(CmdFile) )
	{
	  new File:cmdf=fopen(CmdFile, io_append);
	  fwrite(cmdf, cf);
	  fclose(cmdf);
	}
	return 1;
}
So i made this, ofc it doesn't work, i don't know how to use the format and the Float, should i format it all in a new string or how, could someone explain and re-make my code ? thanks

Reply


Messages In This Thread
stock printc(const format[], {Float,_}:...) - by cmg4life - 14.12.2009, 21:25
Re: stock printc(const format[], {Float,_}:...) - by yom - 14.12.2009, 21:32
Re: stock printc(const format[], {Float,_}:...) - by cmg4life - 14.12.2009, 21:44

Forum Jump:


Users browsing this thread: 1 Guest(s)