SA-MP Forums Archive
How to hash || How to save plate [Double Question] - 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: How to hash || How to save plate [Double Question] (/showthread.php?tid=309492)



Fixed. - Abreezy - 07.01.2012

Fixed.


Re: How to hash || How to save plate [Double Question] - cessil - 07.01.2012

pawn Код:
PlayerInfo[pID][pAPass] = udb_hash(Pass);
            new INI:File = INI_Open(UserPath(playerid));
            INI_SetTag(File,"data");
            INI_WriteInt(File,"APass",PlayerInfo[pID][pAPass]);
you're either trying to save a string into an integer, or save a string as an integer, PlayerInfo[pID][pAPass] should be a string and you shouldn't use WriteInt with it


Re: How to hash || How to save plate [Double Question] - Abreezy - 07.01.2012

INI_WriteInt(File,"Password",udb_hash(inputtext)); It's the same as this, but when i try that, it doesnt work.

When i try that code you said, it gives the same error i was getting before


error 035: argument type mismatch (argument 1)


Re: How to hash || How to save plate [Double Question] - cessil - 07.01.2012

as far as I know, udb_hash will return a string, I told you that you can't save a string as an integer


Re: How to hash || How to save plate [Double Question] - Abreezy - 07.01.2012

It works for the password on registration, i tried with writestring still same error