Login problem.
#1

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);
Reply
#2

Bump.
Reply
#3

Having a problem
Reply
#4

Код:
[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?
Reply
#5

No it doesn't.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)