User data safety - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: User data safety (
/showthread.php?tid=416356)
User data safety -
Dotayuri - 16.02.2013
How safe is it to save user data in a file like this:
YSI
PHP код:
format( pFile , sizeof(pFile), "users/%s.ini", playerid);
And what should i do to make it safer
Re: User data safety -
park4bmx - 16.02.2013
This would be the worst ever way to store player info that I can think of.
Why ?
Well come on think about it, players
Leave &
join
Which then means that a if player that leaves and his I'd is for example
7 and a new player joins his I'd wil be
7 also, what does that tell u ?
Re: User data safety -
Dotayuri - 16.02.2013
Im kind of new so, it tells me that theres a new player with the ID of 7
and his data should be updated right ??
Re: User data safety -
Nuke547 - 16.02.2013
I suggest using MySQL, and for a password, use the
whirlpool encryption.
Re: User data safety -
Dotayuri - 16.02.2013
Quote:
Originally Posted by ******
If you want to use YSI to save player data, I would suggest y_users as it's all already set up.
|
i was having a hard time saving the users data in SQLlight so i though that YSI might be a littler better.
because SQL saved a file called users.db and YSI saves a file so "BLA".
Is is better to make a users.db ??
Re: User data safety -
Rock - 16.02.2013
Quote:
Originally Posted by Dotayuri
i was having a hard time saving the users data in SQLlight so i though that YSI might be a littler better.
because SQL saved a file called users.db and YSI saves a file so "BLA".
Is is better to make a users.db ??
|
I think it is.
Use
this, it's better and easy to use.
Re: User data safety -
Dotayuri - 16.02.2013
Quote:
Originally Posted by Rockk
I think it is.
Use this, it's better and easy to use.
|
I was using this: db_query
PHP код:
#include <rBits>
That was my first pick, would that not be as good ??
Re: User data safety -
Dotayuri - 18.02.2013
bump~
Re: User data safety -
Scenario - 18.02.2013
****** offered a fantastic solution to your problem. You don't have to handle any BS for saving things, the library handles it all for you.