13.08.2018, 14:29
I just found an old vendor system from an old gamemode i was scripting, but i get this errors:
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:
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" |
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;
}