Deposit problem
#1

Hello everyone,

Yes, I do have a problem involving a banking script. I've already tried searching for the answer but none of the topics really helped me, so I decided to start a new one.
The script does work untill the money check, if I for example use /storten(deposit) 2000 it would tell me I'd have enough money to do so. But the problem is the actual depositing. I use this:
Код:
new depamount;
new actualamount;
depamount = strval(tmp);
GetPlayerName(playerid, playername, sizeof(playername));
if (dini_Int(udb_encode(playername), "moneyinpocket") >= depamount)
{
actualamount = dini_Get(playername, "moneyinpocket");
dini_IntSet(playername, "moneyinpocket", actualamount - depamount);
SendClientMessage(playerid,YELLOW,"Money deposited.");
ShowMenuForPlayer(baymorebankgeldzakenMenu,playerid);
}
else
{
SendClientMessage(playerid,YELLOW,"You do not have that money.");
ShowMenuForPlayer(baymorebankgeldzakenMenu,playerid);
}
Any ideas?

Thanks in advance.
Reply


Messages In This Thread
Deposit problem - by neosy - 27.02.2009, 15:15
Re: Deposit problem - by X_Dragon - 16.01.2010, 19:48
Re: Deposit problem - by MadeMan - 16.01.2010, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)