SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Gamemode Scripts (https://forum.sa-mp.com/forumdisplay.php?f=71)
-   -   [GameMode] Very Basic Script (https://forum.sa-mp.com/showthread.php?t=668165)

GTLS 23/07/2019 04:55 PM

Very Basic Script
 
  • Base Login/Register Gamemode


This is just a basic script, which was requested by one of my friends to be made, so I am releasing it here. This script uses MySQL R41-4 and BCrypt for hashing passwords. I dont think there are any base scripts on forums which uses BCrypt as example(At least I dont know if there are any), Which is why I decided to release it for all the people, so that they can know how login/register system is made using MySQL and simple dialogs and also, how to use BCrypt.

  • Features


  • Based on MySQL.
  • Login and Register using normal dialogs.
  • BCrypt Hashing so its very much secure.
  • Saves user's info upon disconnect and loads it on connect. Incl. Positions.
  • Very easy and straight forward scripting.



  • Requirements

  • BlueG's MySQL R41-4
  • BCrypt Plugin and Include
  • MySQL Server installed


  • Screenshots & Downloads


Credits to the creators of above specified plugins and includes.
This script was created for beginners and therefore help will be provided by me ONLY if you provide proper details of error/problem you are having and you must show me what did you try to solve it on your behalf. The script shouldn't have any bugs, but if there are tell me down there.

N4Sti 23/07/2019 05:22 PM

Re: Very Basic Script
 
Nice

ZigGamerx 23/07/2019 05:26 PM

Re: Very Basic Script
 
Pretty much basic and Nice for newbies.

+REP

NeXTGoD 23/07/2019 06:04 PM

Re: Very Basic Script
 
Good job will help for some beginners

GTLS 24/07/2019 04:06 AM

Re: Very Basic Script
 
Thank you for the compliments. The main reason to release this was to spread knowledge about bcrypt in beginners snd even old school scripters.. �� Ill be here if anyone needs my help.

ZigGamerx 24/07/2019 09:18 AM

Re: Very Basic Script
 
@GTLS

There are few warnings of "TAG MISMATCH"

for example:

Code:

if(rows) ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "This account is found on your database. Please login", "Login", "Quit");

GTLS 24/07/2019 10:04 AM

Re: Very Basic Script
 
Quote:

Originally Posted by ZigGamerx (Post 4107309)
@GTLS

There are few warnings of "TAG MISMATCH"

for example:

Code:

if(rows) ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "This account is found on your database. Please login", "Login", "Quit");

Oh sorry, I uploaded the wrong pawn file. The solution is easy though.

remove the enum name of dialog ids and it will be fixed. I have uploaded the fixed pwn file over github.

PHP Code:

//change  on line 15
 
enum DIALOG_IDs
//to
enum 


GeorgeMcReary 24/07/2019 10:20 AM

Re: Very Basic Script
 
Nice bro. Rated 5 Stars.

Mobtiesgangsa 24/07/2019 07:59 PM

Re: Very Basic Script
 
GTLS You dont becouse you never visited forum very often
Quote:

I dont think there are any base scripts on forums which uses BCrypt as example(At least I dont know if there are any)
check Solstice_s page he made one with both bCrypt and Whirlpool

Bcrypt concept

Kane 24/07/2019 09:18 PM

Re: Very Basic Script
 
Not really helpful. I wouldn't recommend this to anyone, especially if they're just learning.


All times are GMT. The time now is 06:23 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.