MySQL Problem [REQUIRE ASSISTANCE]
#6

Sorry for bumping, but I've tried this and it's still not working.

pawn Код:
stock GetDataInt(tablename[], dataname[], targetname[], targetvalue[])
{
    new res[MAX_DATA];
    format(largestr, sizeof(largestr), "SELECT `%s` FROM `%s` WHERE `%s` = '%s'", dataname, tablename, targetname, targetvalue);
    mysql_function_query(connectionHandle, largestr, true, "DataInt", "s", res);
    return strval(res);
}
forward DataInt(data[]);
public DataInt(data[])
{
    new
        rows,
        fields,
        storage[MAX_DATA]
    ;
    cache_get_data(rows, fields, connectionHandle);
    if(!rows)
        return cellmin;
    cache_get_row(0, 0, storage, connectionHandle);
    format(data, MAX_DATA, "%s", storage);
    return 1;
}
Reply


Messages In This Thread
MySQL Problem [REQUIRE ASSISTANCE] - by T0pAz - 23.03.2012, 13:08
Re: MySQL Problem [REQUIRE ASSISTANCE] - by Unte99 - 23.03.2012, 13:15
Re: MySQL Problem [REQUIRE ASSISTANCE] - by T0pAz - 23.03.2012, 13:24
Re: MySQL Problem [REQUIRE ASSISTANCE] - by Unte99 - 23.03.2012, 13:51
Re: MySQL Problem [REQUIRE ASSISTANCE] - by T0pAz - 23.03.2012, 13:54
Re: MySQL Problem [REQUIRE ASSISTANCE] - by T0pAz - 23.03.2012, 14:11
Re: MySQL Problem [REQUIRE ASSISTANCE] - by T0pAz - 23.03.2012, 17:56
Re: MySQL Problem [REQUIRE ASSISTANCE] - by T0pAz - 23.03.2012, 20:02
Re: MySQL Problem [REQUIRE ASSISTANCE] - by T0pAz - 25.03.2012, 14:00
AW: MySQL Problem [REQUIRE ASSISTANCE] - by Tigerkiller - 25.03.2012, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)