02.12.2009, 18:08
Kk, cool it works. No errors on compile.
Now there is only 1 problem left.
Why line BankInfo[285] = BankInfo[285]-carcost; dont work?
It don't save anything to BankInfo...
Now there is only 1 problem left.
Why line BankInfo[285] = BankInfo[285]-carcost; dont work?
It don't save anything to BankInfo...
Код:
new BankInfo[286]; new message[286]; new amount[286]; new carcost = 265; new vid = GetPlayerVehicleID(playerid); // DINI GET amount = dini_Get("company_account/money.ini", "money"); // DINI GET end // COUNT bank minus carfixcost is X BankInfo[285] = BankInfo[285]-carcost; // COUNT bank minus carfixcost is X end format(message, sizeof(message), "Your car repair cost %iЂ", carcost); // MINUS MONEY FROM PLAYER GivePlayerMoney(playerid, -carcost); // MINUS MONEY FROM PLAYER end SendClientMessage(playerid, COLOR_WHITE, message); // DINI WRITE VALYE TO MONEY dini_Set("company_account/money.ini", "money", BankInfo); // DINI WRITE VALYE TO MONEY end // REPAIR VEHICLE if (vid) RepairVehicle(vid); // REPAIR VEHICLE end