SA-MP Forums Archive
File Functions - 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: File Functions (/showthread.php?tid=527146)



File Functions - Juvanii - 21.07.2014

I haven't used these functions before so i'm kinda newbie with this and hope you guys help me.

I wanna make a system like: When a player register himself in the server, it will fcreate a .txt file in a specific folder called by his name and then i could use it with if statement to check if his name is exist in the folder or not.

i think this is possible right?


Re: File Functions - IceBilizard - 21.07.2014

https://sampwiki.blast.hk/wiki/File_Functions


Re: File Functions - Juvanii - 21.07.2014

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
I wouldn't post this thread if i see everything is okay in this page, i'm already in this page reading it and i don't understand some of it, anyway don't post if you don't want to help.

Simply click on this button:


Try it, it's easy.


Re: File Functions - Scottas - 21.07.2014

you can't create folders in pawn, unless you will use plugin (I've saw some, that has create folder functions)


Re: File Functions - Juvanii - 21.07.2014

Quote:
Originally Posted by Scottas
Посмотреть сообщение
you can't create folders in pawn, unless you will use plugin (I've saw some, that has create folder functions)
The folder is already created manually in scriptfiles, i just wanna create %s.txt files in this folder.


Re: File Functions - sammp - 21.07.2014

Don't use fcreate etc.

Get y_ini.. so much faster


Re: File Functions - Juvanii - 21.07.2014

Quote:
Originally Posted by sammp
Посмотреть сообщение
Don't use fcreate etc.

Get y_ini.. so much faster
can i create an empty file using yini?!! i mean is it possible to make an empty .ini files?

if yes! would it be like this only? :
pawn Код:
new INI:File = INI_Open(ThePath(playerid));
INI_Close(File);
just?


Re: File Functions - Scottas - 21.07.2014

it should be, try it