MySQL logging in problem
#1

nvm fixed it, thanks to thekiller. Happened due to a small string size.
Reply
#2

pawn Код:
format(query, sizeof(query), "SELECT * FROM `playerdata` WHERE user = '%s'", pName);
Reply
#3

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
pawn Код:
format(query, sizeof(query), "SELECT * FROM `playerdata` WHERE user = '%s'", pName);
And?
Reply
#4

Quote:
Originally Posted by suhrab_mujeeb
Посмотреть сообщение
And?
That's should fix the problem if you have a valid mysql connection and your registration system also hashing the password as whirlpool.
Reply
#5

Print the query in the dialog and see if it's actually printing the right values. Make sure that in your database, you have a field large enough (130+ chars) and also, don't escape the inputtext as when the whirlpool hashes it, it will take all the bad characters out anyway.

If the problem persists, put mysql_debug under OnGameModeInit or OnFilterScriptInit and paste your mysql log file in your server directory.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)