14.07.2016, 21:02
PHP Code:
[03:56:10] [DEBUG] Calling callback "LoadAkun"..
[03:56:10] [DEBUG] cache_get_field_content_int - row: 0, field_name: "ID", connection: 1
[03:56:10] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[03:56:10] [ERROR] cache_get_field_content_int - invalid datatype
[03:56:10] [DEBUG] cache_get_field_content_int - row: 0, field_name: "pEXP", connection: 1
[03:56:10] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[03:56:10] [ERROR] cache_get_field_content_int - invalid datatype
[03:56:10] [DEBUG] cache_get_field_content_int - row: 0, field_name: "pAdminLevel", connection: 1
[03:56:10] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[03:56:10] [ERROR] cache_get_field_content_int - invalid datatype
[03:56:10] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Premium", connection: 1
[03:56:10] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[03:56:10] [ERROR] cache_get_field_content_int - invalid datatype
[03:56:10] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[03:56:27] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE `users` SET `pEXP` = '2414141', `Premium` = 0, `pAdminLev", callback: "(null)", format: "(null)"
[03:56:27] [DEBUG] CMySQLQuery::Execute[] - starting query execution
[03:56:27] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 85.894 milliseconds
[03:56:27] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving
scipt
PHP Code:
forward LoadAkun(playerid);
public LoadAkun(playerid)
{
pInfo[playerid][ID] = cache_get_field_content_int(0, "ID");
pInfo[playerid][pEXP] = cache_get_field_content_int(0, "pEXP");
pInfo[playerid][pAdminLevel] = cache_get_field_content_int(0, "pAdminLevel");
pInfo[playerid][Premium] = cache_get_field_content_int(0, "Premium");
TogglePlayerSpectating(playerid, false);
SpawnPlayer(playerid);
SendClientMessage(playerid, -1, "You have successfully logged in.");
return 1;
}