09.08.2017, 22:26
(
Последний раз редактировалось Scofield11; 09.08.2017 в 23:03.
)
Actually I fixed the problem by setting default values to all of them. But I've another problem now, when I register the server crashes, but the account is registered in the database.
When I turn on the server again, I log back with it, everything seems to work just fine. Now the problem is filonly in registration.

This is from the server script:
When I turn on the server again, I log back with it, everything seems to work just fine. Now the problem is filonly in registration.

Код:
[20:08:36 08/09/17] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') (Query: "SELECT `ID` FROM `players` WHERE `name` = 'Mark_Banger' LIMIT 1") [20:08:36 08/09/17] [ERROR] cache_get_field_content_int - invalid datatype [20:08:58 08/09/17] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
Код:
SQLSave(playerid); mysql_format(sqlGameConnection, saveQuery, sizeof(saveQuery), "SELECT `ID` FROM `players` WHERE `name` = '%e' LIMIT 1", PlayerName(playerid)); mysql_tquery(sqlGameConnection, saveQuery, "SetPlayerID", "d", playerid); printf("mysql_tquery SetPlayerID");