Exist a tutorial of mysql cache result on the forum?
#2

pawn Код:
GetPlant_Owner(sqlid)
{
    new query, id;

    mysql_format(handle, query, sizeof(query), "SELECT `Character` FROM `characters` WHERE `ID` = '%d'", ReturnName(sqlid));
    new Cache:result = mysql_query(handle, query);

    if(cache_num_rows())
    {
        cache_get_value_int(id, "id", id);
    }
    cache_delete(result);

    return id;
}
I don't know how to explain but take the code above as an example.
Reply


Messages In This Thread
Exist a tutorial of mysql cache result on the forum? - by R3SpaWn0 - 04.08.2018, 19:31
Re: Exist a tutorial of mysql cache result on the forum? - by Sabur - 04.08.2018, 20:18
Re: Exist a tutorial of mysql cache result on the forum? - by R3SpaWn0 - 04.08.2018, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)