28.07.2011, 07:29
Do not bump your topic within 48 hours. Not only is it unnecessary, it's against the rules.
As for your problem, can you give more information? What do you mean by you can't read from the database properly? Does the string you're storing the password in have anything in it or is it null? Are you sure you're connected to the database? Are you using the correct table name?
Your problem is most likely because of improper SQL syntax. You use ` around table names.
As for your problem, can you give more information? What do you mean by you can't read from the database properly? Does the string you're storing the password in have anything in it or is it null? Are you sure you're connected to the database? Are you using the correct table name?
Your problem is most likely because of improper SQL syntax. You use ` around table names.
pawn Код:
format(str, sizeof(str), "SELECT Password FROM `Players` WHERE Name = '%s'", playername);