No Active Cache
#1

Hey guys,

I want to create objects that are read from my database. However always comes "No Active Cache"



PHP код:
LoadObject(); 
PHP код:
public LoadObject()
{
    new 
mquery[256];
    
mysql_format(handlemquerysizeof(mquery), "SELECT * FROM material");
    
mysql_pquery(handlemquery);
    new 
rowsa;
    
cache_get_row_count(rowsa);
    if(
rowsa == 0)
    {
        return 
1;
    }
    else
    {
        for(new 
imim sizeof(mquery); im++)
        {
            
cache_get_value_name_int(0"modelid"iMaterial[im][modelid]);
            
cache_get_value_float(0"posx"iMaterial[im][m_x]);
            
cache_get_value_float(0"posy"iMaterial[im][m_y]);
            
cache_get_value_float(0"posz"iMaterial[im][m_z]);
            
cache_get_value_name(0"3dtext"iMaterial[im][mText]);
              
material[im] = CreateDynamicObject(iMaterial[im][modelid],iMaterial[im][m_x],iMaterial[im][m_y],iMaterial[im][m_z] - 1.00.00.00.00);
        }
    }
    return 
1;

My user accounts are loaded from the database without any problems.
Reply


Messages In This Thread
No Active Cache - by Dreandor - 28.06.2018, 17:09
Re: No Active Cache - by Abagail - 28.06.2018, 17:10
Re: No Active Cache - by Calisthenics - 28.06.2018, 17:17
Re: No Active Cache - by CodeStyle175 - 28.06.2018, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)