29.10.2012, 15:59
pawn Код:
else if(strlen(inputtext) < BankInfo[playerid][pBankMoney][0])
{
if(BankInfo[playerid][pActiveAcc][0] == 1)
{
new withdrawd = strlen(inputtext);
GivePlayerMoney(playerid, withdrawd);
format(string, sizeof(string), "You have withdrawn $%d from Bank Account 1.", withdrawd);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
BankInfo[playerid][pBankMoney][0] -= withdrawd;
}
else SendClientMessage(playerid, COLOR_LIGHTRED, "That account is not active and valid, you cannot withdraw from it!");
}
Any help on this? I have no idea why it isn't giving me the full amount, not good with strlen(inputtext)