Mysql cache
#5

Ahem, I know how to do this, if didn't I wouldn't be converting i would be trying to learn it. I'm doing this because i like to TEST functions I haven't used yet before actually making something with it.

just used this:

pawn Код:
public OnPlayerConnect(playerid)
{
    mysql_function_query(Gconnection, "SELECT * FROM users WHERE `username`='thefatshizms'", true, "OnPlayerLogin", "d", "playerid");
    return 1;
}

forward OnPlayerLogin(playerid);
public OnPlayerLogin(playerid) {
    new rows, fields;
    cache_get_data(rows, fields, Gconnection);
    if(rows)
    {
        new temp[12];
        cache_get_row(0, 8, temp);
        printf("thefatshizms admin level is %d", temp);
        cache_get_row(0, 3, temp);
        printf("thefatshizms money is %d", temp);
    }
    return 1;

}
Still saying 52, I can give a screen shot of my table if needed.
Reply


Messages In This Thread
Mysql cache - by thefatshizms - 10.02.2013, 13:26
Re: Mysql cache - by MP2 - 10.02.2013, 13:29
Re: Mysql cache - by thefatshizms - 10.02.2013, 13:30
Re: Mysql cache - by ReVo_ - 10.02.2013, 13:32
Re: Mysql cache - by thefatshizms - 10.02.2013, 13:35
AW: Mysql cache - by Tommyx3 - 10.02.2013, 13:47
Re: AW: Mysql cache - by thefatshizms - 10.02.2013, 13:52

Forum Jump:


Users browsing this thread: 4 Guest(s)