Login problem. - 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)
+--- Thread: Login problem. (
/showthread.php?tid=429925)
Login problem. -
Tanush123 - 11.04.2013
This what debug shows
pawn Код:
[17:29:56] CMySQLHandler::FetchRow() - Return: Tan|derp|10000|4|0|-255
[17:29:56] >> mysql_free_result( Connection handle: 1 )
[17:29:56] CMySQLHandler::FreeResult() - Result was successfully free'd.
[17:29:56] >> mysql_fetch_field_row( Connection handle: 1 )
[17:29:56] CMySQLHandler::FetchField(Name) - You cannot call this function now. (Reason: Fields/Rows are empty.)
[17:29:56] >> mysql_fetch_field_row( Connection handle: 1 )
[17:29:56] CMySQLHandler::FetchField(Password) - You cannot call this function now. (Reason: Fields/Rows are empty.)
[17:29:56] >> mysql_fetch_field_row( Connection handle: 1 )
[17:29:56] CMySQLHandler::FetchField(Cash) - You cannot call this function now. (Reason: Fields/Rows are empty.)
[17:29:56] >> mysql_fetch_field_row( Connection handle: 1 )
[17:29:56] CMySQLHandler::FetchField(AdminLevel) - You cannot call this function now. (Reason: Fields/Rows are empty.)
[17:29:56] >> mysql_query( Connection handle: 1 )
Well when i log in, i don't get my cash and my admin level is at 0. On phpmyadmin it shows my cash is 10000 and AdminLevel 4
pawn Код:
mysql_fetch_field_row(str, "Name"); PlayerData[playerid][Name] = strval(str);
mysql_fetch_field_row(str, "Password"); PlayerData[playerid][Password] = strval(str);
mysql_fetch_field_row(str, "Cash"); PlayerData[playerid][Cash] = strval(str);
mysql_fetch_field_row(str, "AdminLevel"); PlayerData[playerid][AdminLevel] = strval(str);
Re: Login problem. -
Tanush123 - 13.04.2013
Bump.
Re: Login problem. -
Tanush123 - 20.04.2013
Having a problem
Re: Login problem. -
RajatPawar - 20.04.2013
Код:
[17:29:56] CMySQLHandler::FreeResult() - Result was successfully free'd.
[17:29:56] CMySQLHandler::FetchField(Name) - You cannot call this function now. (Reason: Fields/Rows are empty.)
Does that help?
Re: Login problem. -
Tanush123 - 20.04.2013
No it doesn't.