pBlueG / SA-MP-MySQL

MySQL plugin for San Andreas Multiplayer
BSD 3-Clause "New" or "Revised" License
196 stars 78 forks source link

[FIXED] cache_get_value_int_ovrld #255

Closed PutuSuhartawan closed 3 years ago

PutuSuhartawan commented 3 years ago

image

Bronzal commented 3 years ago

plugin wiki page

PutuSuhartawan commented 3 years ago

FIXED with

new int_dest;
cache_get_value_index_int(3, 0, int_dest);
printf("The number stored in the fourth row and first column is '%d'.", int_dest);

`vehicleid = GetOwnableCarBySqlID( cache_get_value_int(idx, "owner_id", get_vehicle_data[vehicleid][V_ACTION_ID]) ); if(vehicleid != INVALID_VEHICLE_ID) { for(slot = 0; slot < MAX_VEHICLE_TRUNK_SLOTS; slot ++) { if(GetTrunkData(vehicleid, slot, TRUNK_SQL_ID)) continue;

    cache_get_value_int(idx, "id", get_vehicle_trunk[vehicleid][slot][TRUNK_SQL_ID]);
    cache_get_value_int(idx, "item_type", get_vehicle_trunk[vehicleid][slot][TRUNK_ITEM_TYPE]);
    cache_get_value_int(idx, "amount", get_vehicle_trunk[vehicleid][slot][TRUNK_ITEM_AMOUNT]);
    cache_get_value_int(idx, "value", get_vehicle_trunk[vehicleid][slot][TRUNK_ITEM_VALUE]);`

image