[FilterScript] Register And Login System With Clickable Textdraws(MySQL R41+)
#1

Register And Login System With Clickable Textdraws

Hello SA-MP Forums, a few days ago I found a video about a registration system with clickable textdraws, I quite liked but there not was a download link, I decided to create an identical system and here I leave for you as well.




To edit the system configurations

To set the maximum number of failed login attempts
Code:
#if !defined MAX_LOGGIN_ATTEMPTS
	#define MAX_LOGGIN_ATTEMPTS             (5)
#endif
To set the minimum/max number of characters that a password must have
Code:
#if !defined MIN_PASSWORD_LENGTH
	#define MIN_PASSWORD_LENGTH             5
#endif


#if !defined MAX_PASSWORD_LENGTH
	#define MAX_PASSWORD_LENGTH             20
#endif
To set the year older and newer than we can select as year of birth
Code:
#if !defined MIN_DATE_YEAR
	#define MIN_DATE_YEAR                   (1850)
#endif


#if !defined MAX_DATE_YEAR
	#define MAX_DATE_YEAR                   (2018)
#endif
To change the color of the textdraw when we pass the mouse over the textdraw clickable
Code:
#if !defined COLOR_LOGGIN_TD_HOVERING
	#define COLOR_LOGGIN_TD_HOVERING		(0x00C100FF)
#endif


#if !defined COLOR_REGISTER_TD_HOVERING
	#define COLOR_REGISTER_TD_HOVERING		(0xFF000085)
#endif

For configure the MySQL database, you must add your information in the mysql.ini file

The system automatically recognizes a leap year and correctly show the days of february depending if the year is a leap year or not

Two useful commands were added to the system "/changepassword" and "/changegender"


Download
github - https://github.com/JuanUgalde/MySQL-...d-Login-System
pastebin - https://pastebin.com/S1HeR5SS
Reply
#2

Aweosme
Reply
#3

Looks like good work! Keep it up +1
Reply
#4

Good work! Compatible with MySQL R5?
Reply
#5

Quote:
Originally Posted by Mr.Vince™
View Post
Aweosme
Quote:
Originally Posted by vHero
View Post
Looks like good work! Keep it up +1
Thanks!
Quote:
Originally Posted by Foxtrone
View Post
Good work! Compatible with MySQL R5?
No, only MySQL R41+
Reply
#6

Very good.
Reply
#7

Awesome work fam.
Reply
#8

Amazing mate!
Really loved it, very clean!
+2REP !
Reply
#9

Cool! Good job, awesome
Reply
#10

With this script i learned a bit of MySQL... a very clean code.

Good job
Reply
#11

Hello there,
I am facing the following errors, please help.
Code:
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(130) : error 017: undefined symbol "mysql_connect_file"
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(130) : warning 213: tag mismatch
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(132) : warning 213: tag mismatch
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(138) : warning 213: tag mismatch
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(147) : warning 213: tag mismatch
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(147) : warning 213: tag mismatch
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(164) : warning 213: tag mismatch
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(541) : error 017: undefined symbol "cache_get_value_name"
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(542) : error 017: undefined symbol "cache_get_value_name"
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(544) : error 017: undefined symbol "cache_get_value_name_int"
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(545) : error 017: undefined symbol "cache_get_value_name_int"
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(595) : error 035: argument type mismatch (argument 3)
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(900) : warning 213: tag mismatch
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(984) : warning 213: tag mismatch
C:\Users\ARC\Desktop\New Project\filterscripts\login.pwn(1016) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)