Errors, please help
#2

Since, you have barely started on this script. I would suggest to switch dini to y_ini.
Also, the main problem is this piece of the code.

pawn Код:
new string[30];
format(string, 30, "%s\r\n", pname);
fwrite(ftw, string);
Your user system is terrible. By looking at the script, it seems that you are saving stats based on name. Although this necessarily isn't bad, the system doesn't require a password so anyone could just login as a user, even though it's not their account.

Here's a great tutorial that will help you on your register/login system:
https://sampforum.blast.hk/showthread.php?tid=273088

However, instead of using 'udb_hash' as the hashing system. Use Whirlpool instead since it is far more secure.
Reply


Messages In This Thread
Errors, please help - by DJTunes - 17.06.2013, 21:29
Re: Errors, please help - by JJB562 - 17.06.2013, 22:07

Forum Jump:


Users browsing this thread: 1 Guest(s)