Very distracted now - 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: Very distracted now (
/showthread.php?tid=318772)
Very distracted now -
Max_Coldheart - 16.02.2012
Well, I'm using dini (Don't start complaining of it). The problem is that when I try to use my registration system, it sets my hashed password as "0", so I tried to do it using
pawn Код:
dini_IntSet(filename[],key[],value)
It didn't give out errors but didn't work either.
Now I'm trying to use
pawn Код:
dini_Set(filename[],key[],value[])
Which has exactly the same parameters, but the dini_Set is returning this from compiler:

Well, it's pretty odd as this line is:
pawn Код:
dini_Set(UserPath(playerid), "Password", WP_Hash(buf, sizeof(buf), inputtext));
and it works perfectly with
pawn Код:
dini_IntSet(UserPath(playerid), "Password", WP_Hash(buf, sizeof(buf), inputtext));
but it doesn't save it to the file.
What's the problem?
WP_Hash:
pawn Код:
native WP_Hash(buffer[], len, const str[]);
WP_Hash location: