01.01.2015, 21:29
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); } } } } }