More than 2 = No cache active?!
#1

Ok , well tonight i get a stupid bug which one i don't know how to fix it!

Well if is only 2 sbizz in db = no problem in mysql_log , but if i make 3 sbizz in db =

Код:
[21:24:34] [WARNING] cache_get_field_content_int - no active cache
[21:24:34] [WARNING] cache_get_field_content_int - no active cache
[21:24:34] [WARNING] cache_get_field_content_int - no active cache
[21:24:34] [WARNING] cache_get_field_content_int - no active cache
[21:24:34] [WARNING] cache_get_field_content_int - no active cache
[21:24:34] [WARNING] cache_get_field_content_float - no active cache
[21:24:34] [WARNING] cache_get_field_content_float - no active cache
[21:24:34] [WARNING] cache_get_field_content_float - no active cache
[21:24:34] [WARNING] cache_get_field_content - no active cache
[21:24:34] [WARNING] cache_get_field_content - no active cache
Why the fuck ? o-o


There are my code:
pawn Код:
stock IncarcaSBIZZ()
{
    new Cache: Result = mysql_query(SQL, "SELECT * FROM `sBusiness`"), Get[2];
    cache_get_data(Get[0], Get[1], SQL); // Get[0] - Rows || Get[1] - Fields || SQL - connectionHandle
    new IDSB;
    new string[456];
    for(new i = 0; i < Get[0]; i++)
    {
        IDSB = cache_get_field_content_int(i, "ID");
        sBizz[IDSB][sBOwnable] = cache_get_field_content_int(i, "Ownable");
        sBizz[IDSB][sBDeposit] = cache_get_field_content_int(i, "Depozit");
        sBizz[IDSB][sBSettings] = cache_get_field_content_int(i, "Settings");
        sBizz[IDSB][sBPret] = cache_get_field_content_int(i, "Price");
        sBizz[IDSB][sBX] = cache_get_field_content_float(i, "PozitieX", SQL);
        sBizz[IDSB][sBY] = cache_get_field_content_float(i, "PozitieY", SQL);
        sBizz[IDSB][sBZ] = cache_get_field_content_float(i, "PozitieZ", SQL);
        cache_get_field_content(i, "Titlu", sBizz[IDSB][sBTitlu], SQL, 80);
        cache_get_field_content(i, "Detinator", sBizz[IDSB][sBDetinator], SQL, 50);
        CreateDynamicPickup(1239, 1,  sBizz[IDSB][sBX], sBizz[IDSB][sBY], sBizz[IDSB][sBZ], -1, -1, -1, 250.0);
        if(sBizz[IDSB][sBOwnable] == 0)
        {
            format(string, sizeof(string), "{FFCC00}[ %s ]\n\n( Pret de cumparare: {00cc33} %s$ {FFCC00})\n{FFCC00}( Tasteaza {CC0033}/buysbizz{FFCC00} )", sBizz[IDSB][sBTitlu], FormatMoney(sBizz[IDSB][sBPret]));
            sbizz[IDSB] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, sBizz[IDSB][sBX], sBizz[IDSB][sBY], sBizz[IDSB][sBZ]+0.75,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,0,-1,-1, 10.5);
        }
        if(sBizz[IDSB][sBOwnable] == 1)
        {
            format(string, sizeof(string), "{FFCC00}[ %s ]\n\n( Detinator: {00cc33} %s {FFCC00})", sBizz[IDSB][sBTitlu], sBizz[IDSB][sBDetinator]);
            sbizz[IDSB] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, sBizz[IDSB][sBX], sBizz[IDSB][sBY], sBizz[IDSB][sBZ]+0.75,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,0,-1,-1, 10.5);
        }
        if(sBizz[IDSB][sBOwnable] == 1)
        {
            format(szQuery, 500, "SELECT * FROM `Accounts` WHERE `Name` = '%s' LIMIT 1;", sBizz[IDSB][sBDetinator]);
            new Cache: result2 = mysql_query(SQL, szQuery);
            new Gete[ 2 ];
            cache_get_data(Gete[ 0 ], Gete[ 1 ], SQL);
            if(!Gete[ 0 ])
            {
                sBizz[IDSB][sBOwnable] = 0;
                format(sBizz[IDSB][sBDetinator], 50, "No-One");
            }
            cache_delete(result2);
        }
        sSBizz++;
    }
    GasPrice = sBizz[1][sBSettings] * Rata;
    cache_delete(Result);
    printf("[8.] Am incarcat toate sbizz-urile [%d]",sSBizz);
}
My DB: http://i.imgur.com/sn3iBbw.png


... Any explain ? why is happening ?
Reply


Messages In This Thread
More than 2 = No cache active?! - by Metharon - 15.01.2015, 18:47
Re: More than 2 = No cache active?! - by xVIP3Rx - 15.01.2015, 19:07
Re: More than 2 = No cache active?! - by Metharon - 15.01.2015, 21:18
Re: More than 2 = No cache active?! - by Vince - 15.01.2015, 21:29
AW: More than 2 = No cache active?! - by Mellnik - 15.01.2015, 21:37
Re: More than 2 = No cache active?! - by Metharon - 15.01.2015, 21:43
Re: AW: More than 2 = No cache active?! - by xVIP3Rx - 15.01.2015, 21:47
Re: More than 2 = No cache active?! - by Metharon - 15.01.2015, 22:05
Re: More than 2 = No cache active?! - by xVIP3Rx - 15.01.2015, 22:14
Re: More than 2 = No cache active?! - by Metharon - 15.01.2015, 22:29

Forum Jump:


Users browsing this thread: 1 Guest(s)