Array must be indexed error... [SOLVED]
#4

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...
Код:
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
Reply


Messages In This Thread
Array must be indexed error... [SOLVED] - by woaha - 02.12.2009, 16:39
Re: Array must be indexed error... - by ExoSanty - 02.12.2009, 17:13
Re: Array must be indexed error... - by DeathOnaStick - 02.12.2009, 17:19
Re: Array must be indexed error... - by woaha - 02.12.2009, 18:08
Re: Array must be indexed error... - by woaha - 04.12.2009, 09:46
Re: Array must be indexed error... - by woaha - 05.12.2009, 11:51
Re: Array must be indexed error... - by Donny_k - 05.12.2009, 12:31
Re: Array must be indexed error... - by woaha - 05.12.2009, 15:39
Re: Array must be indexed error... - by Donny_k - 05.12.2009, 16:35
Re: Array must be indexed error... - by woaha - 05.12.2009, 18:46

Forum Jump:


Users browsing this thread: 3 Guest(s)