[Include] [INC] K's Technology - File 0.1b - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] K's Technology - File 0.1b (
/showthread.php?tid=77809)
[INC] K's Technology - File 0.1b -
rooney348 - 14.05.2009
Hello.
I hate to use someone's scripts/includes, so I decided to write this include. OMFG, lack of words to me again
Functions:
native FileExists(fname[]);
native CreateFile(fname[]);
native RemoveFile(fname[]);
native CopyFile(fname[], newname[]);
native RenameFile(fname[], newname[]);
native GetStrFromFile(fname[], option[]);
native GetIntFromFile(fname[], option[]);
native GetFloatFromFile(fname[], option[]);
native GetBoolFromFile(fname[], option[]);
native GetPassword(fname[], option[], method[], array[], maxlength);
native CompareKSEMPasswords(fname[], option[], password[]);
native SetStrOption(fname[], option[], str[]);
native SetIntOption(fname[], option[], integer);
native SetFloatOption(fname[], option[], Float);
native SetBoolOption(fname[], option[], bool);
native SetPassword(fname[], option[], password[], method[]);
native UnsetOption(fname[], option[]);
native Write(fname[], str[]);
native Read(fname[], line);
native SaveToArray(fname[], line, array[], maxlength);
native ROT13(text[]);
native KEncrypt(text[]);
native KDecrypt(text[]);
native KSEM(text[]);
I don't know English well, so I don't know how to describe exactly this include.
PS - I love translator xD
DOWNLOAD - FILE-UPLOAD.NET
INCLUDE - PASTEBIN
TEST FILE - PASTEBIN
If you've got a problem, get TEST FILE (it is on first link).
-+UPDATE+- Version 0.1b
I forgot to add 'stock' before 'strcmp_ex'.
From now on when the operation on two files, check whether they have the same name.
Regards, K.
Re: [INC] K's Technology - File -
Backwardsman97 - 15.05.2009
Maybe in your CopyFile function it would be smart to check and make sure that newname isn't the same as the fname.
Re: [INC] K's Technology - File 0.1b -
rooney348 - 16.05.2009
Update