How to create comment box and save?
#6

Quote:
Originally Posted by Abreezy
Посмотреть сообщение
I was about to help you, but you decide to double post after 5 minutes? Learn to be patient, we aren't slaves to help you at request.
+1

Quote:
Originally Posted by dreamworld
Посмотреть сообщение
simply make log like ban/kick
DO you even know pawn code?


pawn Код:
CMD:c(file[], input[])
{
    File:filevar;
    if(!fexist(file)) filevar = fopen(file, io_write);
    else filevar = fopen(file, io_append);
    if(!fexist(file))
    {
        printf("Failed to load '%s'", file);
        return 0;
    }
    else
    {
        new str[512];
        format(str, sizeof(str), "%s\r\n", input);
        fwrite(filevar, input);
        fclos(filevar);
      return 1;
    }
}
Untested - I dont know basic SAMP file input text to file saving so this is a first


If this doesnt work wait for somone to edit it or i can make it for you in Y_INI
Reply


Messages In This Thread
How to create comment box and save? - by HotPlayer - 28.08.2011, 21:54
Re: How to create comment box and save? - by HotPlayer - 28.08.2011, 21:59
Re: How to create comment box and save? - by Abreezy - 28.08.2011, 22:03
Re: How to create comment box and save? - by HotPlayer - 28.08.2011, 22:08
Re: How to create comment box and save? - by dreamworld - 28.08.2011, 22:22
Re: How to create comment box and save? - by IceCube! - 28.08.2011, 22:33
Re: How to create comment box and save? - by Abreezy - 28.08.2011, 22:56
Re: How to create comment box and save? - by dreamworld - 28.08.2011, 23:11
Re: How to create comment box and save? - by IceCube! - 28.08.2011, 23:13
Re: How to create comment box and save? - by Abreezy - 28.08.2011, 23:18

Forum Jump:


Users browsing this thread: 1 Guest(s)