01.01.2015, 21:38
Try this code:
pawn Код:
if(dialogid == DIALOG_WITHDRAW)
{
if(response)
{
switch(listitem)
{
case 0:
{
if(!isnumeric(inputtext)) return SendClientMessage(playerid, -1, "Please only type numbers only");
if(strval(inputtext) > pInfo[playerid][BMoney]) return SendClientMessage(playerid, -1, "You do not have enough money in your bank account");
pInfo[playerid][BMoney] = (pInfo[playerid][BMoney] - strval(inputtext));
GivePlayerMoney(playerid, strval(inputtext));
format(ustr, sizeof ustr, "You have token out $%i", strval(inputtext));
SendClientMessage(playerid, -1, ustr);
}
}
}
return 1;
}