17.06.2013, 22:07
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.
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.
Also, the main problem is this piece of the code.
pawn Код:
new string[30];
format(string, 30, "%s\r\n", pname);
fwrite(ftw, string);
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.