Need an Easy Fs
#4

Quote:
Originally Posted by [MFC
Sylar [[::TheMafia::]] ]
thx but.. i don't know how to use it in dcmd
pawn Code:
dcmd_suggest(playerid, params[])
{
  new string[128];
  if (sscanf(params, "s", string)) SendClientMessage(playerid, 0xC0C0C0FF, "USAGE: /suggest [text]");
  else
  {
    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");
  }
  return 1;
}
I Aspect That you have sscanf in your code.
You need to create a file named "suggestions.txt" in your scriptfiles folder.

Note: Not Tested, And not compiled.
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: 1 Guest(s)