Password
#4

Just load the player's data once under OnPlayerConnect after resetting all the variables. There's no need to do it twice. Get rid of the udb_hash algorithm and use something more secure such as Whirlpool. I'm not familiar with using MD5 in PAWN but take a look at this post: https://sampforum.blast.hk/showthread.php?tid=68237

EDIT:
The size of that string variable in the UserPath function can't exceed 36 characters. The maximum length of a player's name is 24 characters (20 actually) and your path won't change either. Count both lengths up and you get 34 or 35. So you're wasting over 80 bits (= 240 bytes or 0,240 kB of wasted memory).
Reply


Messages In This Thread
Password - by saffierr - 02.01.2016, 23:56
Re: Password - by AndySedeyn - 03.01.2016, 00:05
Re: Password - by saffierr - 03.01.2016, 00:07
Re: Password - by AndySedeyn - 03.01.2016, 00:21

Forum Jump:


Users browsing this thread: 1 Guest(s)