19.04.2014, 21:02
I am trying to convert [gf]sassino's house/business/furniture system to y_ini although there some functions that i am a bit confused on how to change them
The errors are of couse INI_Save, INI_Load which y_ini doesn't actually have.. example how could i change this to y_ini
The errors are of couse INI_Save, INI_Load which y_ini doesn't actually have.. example how could i change this to y_ini
pawn Код:
forward FS_GiveBusinessGoods(shopid, goods);
public FS_GiveBusinessGoods(shopid, goods)
{
if(!strcmp(BusinessInfo[shopid][bOwner], INVALID_OWNER, true)) return 1;
if(BusinessInfo[shopid][bGoods] + goods < 0) return 0;
BusinessInfo[shopid][bGoods] += goods;
new filename[128];
format(filename, 128, SHOP_FILE, shopid);
INI_Open(filename);
INI_WriteInt("Goods", BusinessInfo[shopid][bGoods]);
INI_Save();
INI_Close();
return 1;
}