dini/mysql/hash problem. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dini/mysql/hash problem. (
/showthread.php?tid=223288)
dini/mysql/hash problem. -
ajwar - 09.02.2011
pawn Код:
if(fexist(file))
{
format( query, 256, "INSERT INTO `users` (name, password) \
VALUES ('%s',%d)", name,dini_Int(file,"password"));
mysql_query( query );
playerDB[ playerid ][ pSQLID ] = mysql_insert_id( );
LoadFileData(playerid);
}
i want to insert this in hash: dini_Int(file,"password")
tohash(dini_Int(file,"password")) won't work.
Can anyone help?
Re: dini/mysql/hash problem. -
Calgon - 09.02.2011
It's unlikely that your password is an integer, change your dini password code to:
pawn Код:
dini_Get(file, "password")