Saving bankpassword in MySQL
#2

The size of the query is 100 an and the output Whirlpool itself is 128 characters.

When a player registers, you need to use INSERT INTO as UPDATE is used for existed rows.

You better use threaded queries (even for INSERT/UPDATE/DELETE) and escape strings in the future.

Here's an example of register/login: https://raw.githubusercontent.com/pB...stem-cache.pwn

It also uses race condition check which not many of the tutorials/released gamemodes have.
Reply


Messages In This Thread
Saving bankpassword in MySQL - by Deroxi - 06.06.2016, 16:16
Re: Saving bankpassword in MySQL - by Konstantinos - 06.06.2016, 16:23
Re: Saving bankpassword in MySQL - by Deroxi - 06.06.2016, 16:46
Re: Saving bankpassword in MySQL - by JasperM - 06.06.2016, 16:48
Re: Saving bankpassword in MySQL - by Konstantinos - 06.06.2016, 16:54
Re: Saving bankpassword in MySQL - by Deroxi - 06.06.2016, 16:55
Re: Saving bankpassword in MySQL - by Konstantinos - 06.06.2016, 17:02
Re: Saving bankpassword in MySQL - by Deroxi - 06.06.2016, 17:09
Re: Saving bankpassword in MySQL - by Konstantinos - 06.06.2016, 17:13
Re: Saving bankpassword in MySQL - by Deroxi - 06.06.2016, 17:18

Forum Jump:


Users browsing this thread: 2 Guest(s)