05.06.2018, 03:43
Quote:
The pname string into OnPlayerConnect is not setted, use GetPlayerName(playerid,pname,sizeof(pname)); once format the query
|
thanks
the errors are now
Код:
[22:39:21] [DEBUG] mysql_format(0, 0x03A089D4, 128, "SELECT `Password`, `ID` FROM `accounts` WHERE `Username` = '%e' LIMIT 1") [22:39:21] [ERROR] mysql_format: invalid connection handle '0' [22:39:21] [DEBUG] mysql_tquery(0, "", "OnAccountCheck", "i") [22:39:21] [ERROR] mysql_tquery: invalid connection handle '0' [22:39:21] [DEBUG] mysql_tquery: return value: '0'
Код:
mysql_format(Database, query, sizeof(query), "SELECT `Password`, `ID` FROM `accounts` WHERE `Username` = '%e' LIMIT 1", pname); mysql_tquery(Database, query, "OnAccountCheck", "i", playerid);