Little help with Bank withdraw please
#2

This code is weird. Probably switch/case isn't working. Try this

Код:
if(response)
{
	switch(dialogid)
	{
		case DIALOG_WITHDRAW:
		{
			switch(listitem)
			{
				case 0:
				{
					new theMoney = strval(inputtext);

					if(!isnumeric(inputtext)) return SendClientMessage(playerid, -1, "Please only type numbers only");
					if(theMoney > pInfo[playerid][BMoney]) return SendClientMessage(playerid, -1, "You do not have enough money in your bank account");

					pInfo[playerid][BMoney] -= theMoney;
					GivePlayerMoney(playerid, -theMoney);
					format(ustr, sizeof ustr, "You have token out $%i", theMoney);
					SendClientMessage(playerid, -1, ustr);
				}
			}
		}
	}
}
Reply


Messages In This Thread
Little help with Bank withdraw please - by LeXuZ - 01.01.2015, 18:49
Re: Little help with Bank withdraw please - by ball - 01.01.2015, 21:29
Re: Little help with Bank withdraw please - by Boot - 01.01.2015, 21:38
Re: Little help with Bank withdraw please - by LeXuZ - 01.01.2015, 23:41
Re: Little help with Bank withdraw please - by LeXuZ - 03.01.2015, 18:50

Forum Jump:


Users browsing this thread: 1 Guest(s)