SA-MP Forums Archive
TXT document. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TXT document. (/showthread.php?tid=342075)



TXT document. - Kukkurloom - 12.05.2012

Hello!

How to make automatic text document with all players names and passwords to scriptfiles folder?
Thanks!


Re: TXT document. - SnG.Scot_MisCuDI - 12.05.2012

I will only help you with creating, not actually scripting the whole thing

pawn Код:
new file[128];
pawn Код:
format(file,sizeof(file),"NameofFolderinScriptFiles/%i.ini",playername);
    dini_Create(file);
    dini_Set(file, "Name", name);
This is an example. Now you have to go through and add the info you want to be stored