Mysql help
#1

I just found an old vendor system from an old gamemode i was scripting, but i get this errors:

Quote:

undefined symbol "cache_get_data"
undefined symbol "cache_get_value_int_ovrld"
undefined symbol "cache_get_value_int_ovrld"
undefined symbol "cache_get_field_float"
undefined symbol "cache_get_field_float"
undefined symbol "cache_get_field_float"
undefined symbol "cache_get_field_float"
undefined symbol "cache_get_value_int_ovrld"
undefined symbol "cache_get_value_int_ovrld"

The old gamemode was using an old mysql plugins so that's why the errors. Currently in this gamemode im making i'm using latest blueg's mysql plugin (R41-4).

How to fix it with new mysql?

Code:

pawn Код:
function Vendor_Load()
{
    static rows, fields;

    cache_get_data(rows, fields, g_iHandle);

    for (new i = 0; i < rows; i ++) if (i < MAX_VENDORS)
    {
        VendorData[i][vendorExists] = true;
        VendorData[i][vendorID] = cache_get_value_int(i, "vendorID");
        VendorData[i][vendorType] = cache_get_value_int(i, "vendorType");
        VendorData[i][vendorPos][0] = cache_get_field_float(i, "vendorX");
        VendorData[i][vendorPos][1] = cache_get_field_float(i, "vendorY");
        VendorData[i][vendorPos][2] = cache_get_field_float(i, "vendorZ");
        VendorData[i][vendorPos][3] = cache_get_field_float(i, "vendorA");
        VendorData[i][vendorInterior] = cache_get_value_int(i, "vendorInterior");
        VendorData[i][vendorWorld] = cache_get_value_int(i, "vendorWorld");

        Vendor_Refresh(i);
    }
    return 1;
}
Reply


Messages In This Thread
Mysql help - by KinderClans - 13.08.2018, 14:29
Re: Mysql help - by TVDude - 13.08.2018, 14:42
Re: Mysql help - by KinderClans - 13.08.2018, 14:43
Re: Mysql help - by TVDude - 13.08.2018, 14:45
Re: Mysql help - by KinderClans - 13.08.2018, 14:46
Re: Mysql help - by TVDude - 13.08.2018, 14:56
Re: Mysql help - by KinderClans - 13.08.2018, 15:07
Re: Mysql help - by TVDude - 13.08.2018, 15:15
Re: Mysql help - by KinderClans - 13.08.2018, 19:20
Re: Mysql help - by Florin48 - 13.08.2018, 20:27
Re: Mysql help - by KinderClans - 13.08.2018, 20:40
Re: Mysql help - by travistaylor - 13.08.2018, 20:46
Re: Mysql help - by KinderClans - 13.08.2018, 20:49
Re: Mysql help - by KinderClans - 13.08.2018, 20:55
Re: Mysql help - by denNorske - 14.08.2018, 18:05
Re: Mysql help - by TVDude - 14.08.2018, 18:14
Re: Mysql help - by KinderClans - 14.08.2018, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)