SA-MP Forums Archive
Encrypt() and mysql - 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: Encrypt() and mysql (/showthread.php?tid=73139)



Encrypt() and mysql - watchout - 12.04.2009

Hello

I am trying to transfer users accounts to mysql, everything is okay, but if players use passwords with special characters like *~ etc. the game crashes when you do /login. I already tested it without any special chars and it worked. But I don't know why the game crashes because of this... The typ of "Password" column is varchar. Any ideas to fix it? Please help.


Re: Encrypt() and mysql - watchout - 13.04.2009

Please help me.


Re: Encrypt() and mysql - tom_jonez - 13.04.2009

samp_mysql_real_escape_string(string[]);


Re: Encrypt() and mysql - watchout - 13.04.2009

But I only use
Код:
samp_mysql_real_escape_string(string[]);
with OnPlayerUpdate


Re: Encrypt() and mysql - watchout - 13.04.2009

Any ideas?


Re: Encrypt() and mysql - watchout - 13.04.2009

I don't want to spam but I need to fix that, please help...


Re: Encrypt() and mysql - tom_jonez - 13.04.2009

what did i just say...
on the /login or /register command, add
samp_mysql_real_escape_string(params[]);
look it up. dont sit here and ask for help after someone gives you the right answer. if someone gives you a command, look up what it does..