No
the one that decreases works but in this code:
pawn Код:
case DIALOG_WITHDRAW:
{
if(!response) return ShowPlayerDialog(playerid, DIALOG_BANK, DIALOG_STYLE_LIST, "{007A00}Bank account", " Deposit \n Withdraw \n Balance", "Select", "Cancel");
else if(strval(inputtext) > pInfo[playerid][pBank]) return SendClientMessage(playerid,COLOR_RED,"You Don't Have That Amount in your bank");
else if(!IsNumeric(inputtext))
{
new str[128];
format(str,sizeof(str),"Your Curret Balance Is : $%d\nEnter The Amount You Want To Withdraw Below :",pInfo[playerid][pBank]);
ShowPlayerDialog(playerid, DIALOG_WITHDRAW, DIALOG_STYLE_INPUT, "Withdraw",str, "Withdraw", "Back");
SendClientMessage(playerid,COLOR_RED,"Please Use Numbers");
}
else
{
new str[128];
new inputext = strval(inputtext);
pInfo[playerid][pBank] -= inputext;
GivePlayerMoney(playerid, +inputext);
format(str, sizeof(str), "You have withdrawn $%d out of your account. New balance: $%d", inputext, pInfo[playerid][pBank]);
SendClientMessage(playerid, 0x008000FF, str);
}
}
it dosent i get those errors
Код:
C:\Program Files (x86)\Microsoft Power\GTA San Andreas\TeamDeathMatch\gamemodes\CNR.pwn(2454) : error 029: invalid expression, assumed zero
C:\Program Files (x86)\Microsoft Power\GTA San Andreas\TeamDeathMatch\gamemodes\CNR.pwn(2454) : warning 215: expression has no effect
C:\Program Files (x86)\Microsoft Power\GTA San Andreas\TeamDeathMatch\gamemodes\CNR.pwn(2454) : error 001: expected token: ";", but found ")"
C:\Program Files (x86)\Microsoft Power\GTA San Andreas\TeamDeathMatch\gamemodes\CNR.pwn(2454) : error 029: invalid expression, assumed zero
C:\Program Files (x86)\Microsoft Power\GTA San Andreas\TeamDeathMatch\gamemodes\CNR.pwn(2454) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.