File Functions
#1

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?
Reply
#2

https://sampwiki.blast.hk/wiki/File_Functions
Reply
#3

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.
Reply
#4

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

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.
Reply
#6

Don't use fcreate etc.

Get y_ini.. so much faster
Reply
#7

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?
Reply
#8

it should be, try it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)