Encrypt() and mysql
#1

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.
Reply
#2

Please help me.
Reply
#3

samp_mysql_real_escape_string(string[]);
Reply
#4

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

Any ideas?
Reply
#6

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

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)