cache_get_field_content_int - invalid datatype
#1

PHP Code:
[03:56:10] [DEBUGCalling callback "LoadAkun"..
[
03:56:10] [DEBUGcache_get_field_content_int row0field_name"ID"connection1
[03:56:10] [ERRORCMySQLResult::GetRowDataByName() - invalid row index ('0')
[
03:56:10] [ERRORcache_get_field_content_int invalid datatype
[03:56:10] [DEBUGcache_get_field_content_int row0field_name"pEXP"connection1
[03:56:10] [ERRORCMySQLResult::GetRowDataByName() - invalid row index ('0')
[
03:56:10] [ERRORcache_get_field_content_int invalid datatype
[03:56:10] [DEBUGcache_get_field_content_int row0field_name"pAdminLevel"connection1
[03:56:10] [ERRORCMySQLResult::GetRowDataByName() - invalid row index ('0')
[
03:56:10] [ERRORcache_get_field_content_int invalid datatype
[03:56:10] [DEBUGcache_get_field_content_int row0field_name"Premium"connection1
[03:56:10] [ERRORCMySQLResult::GetRowDataByName() - invalid row index ('0')
[
03:56:10] [ERRORcache_get_field_content_int invalid datatype
[03:56:10] [DEBUGCMySQLResult::~CMySQLResult() - deconstructor called
[03:56:27] [DEBUGmysql_tquery connection1query"UPDATE `users` SET `pEXP` = '2414141', `Premium` = 0, `pAdminLev"callback"(null)"format"(null)"
[03:56:27] [DEBUGCMySQLQuery::Execute[] - starting query execution
[03:56:27] [DEBUGCMySQLQuery::Execute[] - query was successfully executed within 85.894 milliseconds
[03:56:27] [DEBUGCMySQLQuery::Execute[] - no callback specifiedskipping result saving 
please help

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(playeridfalse);
    
SpawnPlayer(playerid);
    
SendClientMessage(playerid, -1"You have successfully logged in.");
    return 
1;

Reply
#2

Quote:

invalid row index ('0')

Simple, there is no data. Always check if there are any rows with cache_get_row_count to prevent these warnings.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)