Need an Easy Fs
#5

Hi, thank you.

I changed it, and it works perfect:

Code:
dcmd_suggest(playerid, params[])
{
  new string[128];
  if (sscanf(params, "s", string))
  {
   new File:handle = fopen("suggestions.txt", io_append);
   format(string, 128, "%s\r\n", string);
   fwrite(handle, string);
   fclose(handle);
   SendClientMessage(playerid, 0xC0C0C0FF, "Suggestion Send");
	}
  else
  {
	SendClientMessage(playerid, 0xC0C0C0FF, "USAGE: /suggest [text]");
  }
  return 1;
}
But i still have a question, i want to add theese params in the TXT File:

|%s/%s|%s:%s|%s: %s |(%s)| (day, month, hour, minute, player, message, IP)

How can i set that? it would be like this:

|8/5|10:46|[MFC]Sylar: I suggest blah blah |(127.0.0.1)|

Thanx a lot!!!

Reply


Messages In This Thread
Need an Easy Fs - by MarcoNecroX - 08.05.2009, 19:18
Re: Need an Easy Fs - by ICECOLDKILLAK8 - 08.05.2009, 19:24
Re: Need an Easy Fs - by MarcoNecroX - 08.05.2009, 19:39
Re: Need an Easy Fs - by [nl]daplayer - 08.05.2009, 19:56
Re: Need an Easy Fs - by MarcoNecroX - 08.05.2009, 21:45
Re: Need an Easy Fs - by JaYmE - 08.05.2009, 22:00
Re: Need an Easy Fs - by MarcoNecroX - 08.05.2009, 23:11
Re: Need an Easy Fs - by Cardinaal - 10.04.2010, 18:32
Re: Need an Easy Fs - by ruckfules99 - 10.04.2010, 18:45
Re: Need an Easy Fs - by Cardinaal - 10.04.2010, 18:59

Forum Jump:


Users browsing this thread: 2 Guest(s)