Major bank bug!
#3

Код:
This is what I have
if(DepositAmmount>CurrentAmmount) return SendClientMessage(playerid,COLOR_RED,"Nemate toliko novca za poloziti!");//if he has 20,and tries to deposit 21,he won't be able
		 else
		 {
	       new INI:bFile=INI_Open(BankDB(playerid));//else we open his DataBase
	       INI_SetTag(bFile,"BankData");//we set the tag
	       BankInfo[playerid][DepositedMoney]=BankInfo[playerid][DepositedMoney]+DepositAmmount;//we modify the deposit variable by adding to it the number inserted through the dialog
	       INI_WriteInt(bFile,"DepositedMoney",BankInfo[playerid][DepositedMoney]);//and of course we store it
	       INI_Close(bFile);//then we close the file
	       GivePlayerMoney(playerid,-DepositAmmount);//BUT the player looses the deposited ammount(he had 40$,deposited 20$,now he has 20$)
	       SendClientMessage(playerid,COLOR_YELLOW,"Uspjesno ste polozili novac,za informacije pisi /racuninfo!");
	     }
Reply


Messages In This Thread
Major bank bug! - by baba1234 - 18.05.2015, 21:10
Re: Major bank bug! - by amirm3hdi - 18.05.2015, 21:19
Re: Major bank bug! - by baba1234 - 18.05.2015, 21:21
Re: Major bank bug! - by nezo2001 - 18.05.2015, 21:23
Re: Major bank bug! - by Abagail - 18.05.2015, 21:25
Re: Major bank bug! - by amirm3hdi - 18.05.2015, 21:28
Re: Major bank bug! - by baba1234 - 18.05.2015, 21:32
Re: Major bank bug! - by Macluawn - 18.05.2015, 21:39

Forum Jump:


Users browsing this thread: 1 Guest(s)