SA-MP Forums Archive
[FilterScript] Login/Register using ZCMD SSCANF & Y_INI. - 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)
+--- Thread: [FilterScript] Login/Register using ZCMD SSCANF & Y_INI. (/showthread.php?tid=206830)

Pages: 1 2


Login/Register using ZCMD SSCANF & Y_INI. - Zh3r0 - 04.01.2011

Register / Login System
Using ZCMD + SSCANF + Y_INI


Information
I made this system for you guys to start learning about Y_Ini, I've seen many people asking about, how to read, how to write, how to do this, with Y_Ini, well now you guys got a good chance to start a look at the code and learn.

This was not made, for an official release, or for a proper usage, it as released most for the fact that you guys can now start learning some stuff.



Extra
  1. Commands /register and /login of course.
  2. It auto-saves your information on exist.
  3. Saves Moneys, score and Registration date (for now)
  4. A fast system of writing/reading.
  5. A very smooth and friendly coding type.
  6. A /stats command for you to see the stats(Also to learn on how to show your stats trough a dialog)


Picutres
Remember, the language is full English, i just didn't had the change to redo the pictures with the translation, I first released this script on another foreign forum, so excuse the language.
Oh, wait, i got images, but in large sizes, was convenable if they were cut to size....










Instalation
WARNING: To make this work, you need a folder called "Accounts" without the "" of course, in your scriptfiles folder.
So it should be:
Код:
/scriptfiles/Accounts
Remember the 'A', a big capital A at the beggining.



Player File
This is how your file will look like when you done the registration.
Код:
NAME = (SRC)Zh3r0
PASSWORD = Drunken
REG_DATE = 21:10:41  4/1/2011
MONEYS = 5000
SCORE = 15

Credits
****** - Y_Ini, SSCANF
Zeex - ZCMD
Dracoblue - Set, strreplace, pName, Encode, INI_Exist
Zh3r0 - Building up this system using the above functions...



Download
Only pastebin for now. Mirrors accepted.
http://pastebin.com/CSZrCsyG

Enjoy.


Re: Login/Register using ZCMD SSCANF & Y_INI. - TheGuardianAngel - 04.01.2011

Nice , good job bro. :P


Re: Login/Register using ZCMD SSCANF & Y_INI. - IstuntmanI - 04.01.2011

Very nice 0 :P


Re: Login/Register using ZCMD SSCANF & Y_INI. - speedON - 04.01.2011

Nice, Good Job Zh3r0.


Re: Login/Register using ZCMD SSCANF & Y_INI. - Mаkaveli - 04.01.2011

fuu now i can understand y_ini fully big thanks Zh3r0!


Re: Login/Register using ZCMD SSCANF & Y_INI. - Zh3r0 - 04.01.2011

Quote:
Originally Posted by Mаkaveli
Посмотреть сообщение
fuu now i can understand y_ini fully big thanks Zh3r0!
I find it easier to use myself! I had a rough time understanding it too.


Re: Login/Register using ZCMD SSCANF & Y_INI. - Mаkaveli - 04.01.2011

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
I find it easier to use myself! I had a rough time understanding it too.
i raped y_ini 2 day but i stucked in reading strings)) coz after dini its kinda harder


Re: Login/Register using ZCMD SSCANF & Y_INI. - Gh0sT_ - 04.01.2011

Ok, I will use it to learn y_ini And what Encode does?


Re: Login/Register using ZCMD SSCANF & Y_INI. - Zh3r0 - 04.01.2011

Quote:
Originally Posted by Gh0sT_
Посмотреть сообщение
Ok, I will use it to learn y_ini And what Encode does?
Since file names do not support characters like #$%^&*, it it used to replace, for example

[ becomes _1
] becomes _2
{ becomes _3


And soo on, and Decode is vice versa

it reads _1 as a [
_2 as a ]

Got me ?

Version 1.2 coming with VIP System + commands and Admin Level + commands


Re: Login/Register using ZCMD SSCANF & Y_INI. - MrDeath537 - 04.01.2011

Thanks you a lot Zh3r0!!!


Re: Login/Register using ZCMD SSCANF & Y_INI. - [FeK]Knife - 05.01.2011

Very Nice 10/10


Re: Login/Register using ZCMD SSCANF & Y_INI. - Maxi_Weal - 05.01.2011

Awsome work. )


Re: Login/Register using ZCMD SSCANF & Y_INI. - Zh3r0 - 05.01.2011

New version coming right up! Doing some bug-fixing.


Re: Login/Register using ZCMD SSCANF & Y_INI. - buzifej - 08.01.2011

error:
fatal error 100: cannot read from file: "YSI/y_ini"


Re: Login/Register using ZCMD SSCANF & Y_INI. - kurta999 - 08.01.2011

Download this: https://sampforum.blast.hk/showthread.php?pid=884701#pid884701

OFF: Tйnyleg ? o_O xD


Re: Login/Register using ZCMD SSCANF & Y_INI. - Raimis_R - 08.01.2011

Good job


Re: Login/Register using ZCMD SSCANF & Y_INI. - Zh3r0 - 08.01.2011

Quote:
Originally Posted by kurta999
Посмотреть сообщение
What are you saying there ?


Re: Login/Register using ZCMD SSCANF & Y_INI. - Souvlaki - 08.01.2011

Nice one. I won't use it since I find MySQL more convenient and easier to script, but overall good job. Great for newbies starting their own script, Y_Ini seems to be a good and fast method for saving.


Re: Login/Register using ZCMD SSCANF & Y_INI. - Scenario - 08.01.2011

Holy hell, so many damned dialogs! I like that you are using y_ini, good work!


Re: Login/Register using ZCMD SSCANF & Y_INI. - Lorenc_ - 09.01.2011

Great login script, I so love the colours inside these pics