30.03.2016, 09:54
Hey, Mencent. Here it is.
I highly doubt the problem is there.
pawn Код:
forward OnLoadCarStorage(carid);
public OnLoadCarStorage(carid)
{
static
rows,
fields,
str[32];
cache_get_data(rows, fields, g_iHandle);
for (new i = 0; i != rows; i ++) {
CarStorage[carid][i][cItemExists] = true;
CarStorage[carid][i][cItemID] = cache_get_field_int(i, "itemID");
CarStorage[carid][i][cItemModel] = cache_get_field_int(i, "itemModel");
CarStorage[carid][i][cItemQuantity] = cache_get_field_int(i, "itemQuantity");
cache_get_field_content(i, "itemName", str, g_iHandle, sizeof(str));
strpack(CarStorage[carid][i][cItemName], str, 32 char);
}
return 1;
}