SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 17/05/2018, 10:58 PM   #1
KamilPolska
Big Clucker
 
Join Date: May 2016
Location: Poland
Posts: 135
Reputation: 0
Default MySQL Register/Login

Has someone has a script for registration / login [DIALOG] to the latest MySQL BlueG. Register, saving, loading: UID, Name, Money and Score. Because I can not find it.
__________________
Poland / PAWN Amateur
KamilPolska is offline   Reply With Quote
Old 17/05/2018, 11:35 PM   #2
Vennox
Little Clucker
 
Vennox's Avatar
 
Join Date: Apr 2018
Location: Romania
Posts: 18
Reputation: 7
Default Re: MySQL Register/Login

You can start a gamemode with this register / login system made by me:
Is not the latest version of MySQL, but is ok.

Gamemode + .sql file + MySQL plugin > https://www55.zippyshare.com/v/3O4ezEla/file.html

Pastebin (gamemode) > https://pastebin.com/EU9f5y2z

I only made the score saving part. Use the function Update(playerid, pScorex); to update the score into the database.
Try to copy the script for score saving and making it for money.
Vennox is offline   Reply With Quote
Old 18/05/2018, 10:09 AM   #3
Banditul18
Huge Clucker
 
Join Date: Nov 2014
Location: Brasov,Romania
Posts: 253
Reputation: 21
Default Re: MySQL Register/Login

https://github.com/pBlueG/SA-MP-MySQ...stem-cache.pwn
__________________
My works: Github
Banditul18 is offline   Reply With Quote
Old 18/05/2018, 10:54 AM   #4
KamilPolska
Big Clucker
 
Join Date: May 2016
Location: Poland
Posts: 135
Reputation: 0
Default Re: MySQL Register/Login

Thanks!. Will someone help me remove "Salt"?
__________________
Poland / PAWN Amateur
KamilPolska is offline   Reply With Quote
Old 18/05/2018, 11:58 AM   #5
Verc
Little Clucker
 
Join Date: Apr 2018
Posts: 28
Reputation: 0
Default Re: MySQL Register/Login

Why? I don't see anything wrong with salt. It's a great method to keep your password safe.
Verc is offline   Reply With Quote
Old 18/05/2018, 12:01 PM   #6
KamilPolska
Big Clucker
 
Join Date: May 2016
Location: Poland
Posts: 135
Reputation: 0
Default Re: MySQL Register/Login

Yes. But how a player forgets the password is how to get it back.
__________________
Poland / PAWN Amateur
KamilPolska is offline   Reply With Quote
Old 18/05/2018, 12:04 PM   #7
Verc
Little Clucker
 
Join Date: Apr 2018
Posts: 28
Reputation: 0
Default Re: MySQL Register/Login

It's the same.
Usually,we remove the password once the player confirmed it's his account,there might be better method.
Verc is offline   Reply With Quote
Old 18/05/2018, 12:07 PM   #8
KamilPolska
Big Clucker
 
Join Date: May 2016
Location: Poland
Posts: 135
Reputation: 0
Default Re: MySQL Register/Login

Right. Thanks!
__________________
Poland / PAWN Amateur
KamilPolska is offline   Reply With Quote
Old 18/05/2018, 05:54 PM   #9
KamilPolska
Big Clucker
 
Join Date: May 2016
Location: Poland
Posts: 135
Reputation: 0
Default Re: MySQL Register/Login

<REMOVED>
__________________
Poland / PAWN Amateur

Last edited by KamilPolska; 19/05/2018 at 01:09 PM.
KamilPolska is offline   Reply With Quote
Old 19/05/2018, 11:44 AM   #10
KamilPolska
Big Clucker
 
Join Date: May 2016
Location: Poland
Posts: 135
Reputation: 0
Default Re: MySQL Register/Login

Problem solved !
__________________
Poland / PAWN Amateur

Last edited by KamilPolska; 19/05/2018 at 01:09 PM.
KamilPolska is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Login/Register MySQL help tivson Scripting Help 3 04/09/2016 03:40 PM
MYsql login/register won't login KickInTheMick Scripting Help 5 13/12/2013 06:07 PM
MySQL Register & Login [wip] Mitchy Scripting Help 1 14/07/2013 12:48 PM
Mysql Register Login BaranHyrn Scripting Help 0 21/12/2011 06:33 PM
MySQL Login And Register quite_scream Help Archive 2 16/02/2010 02:13 PM


All times are GMT. The time now is 08:02 AM.


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