You are getting the 257th character in the input string, not the numerical value of the string.
.
PHP код:
case atm_withdraw:
{
if (!response)
return 1;
// no need to check also if(response) because if(!response) already stopped the code returning 1.
new inputvalue; // we create an integer variable
inputvalue = strval(inputtext); // we set its value to the integer value of the string "inputtext"
// inputtext[256] is wrong, we will now use inputvalue
if (inputvalue <= 0) // <= means less than or equal to (similarly you can use >=)
return 1;
// again, no need for an else {} block here, because if inputvalue <= 0 then the code stops there
if (PlayerInfo[playerid][pBankMoney] >= inputvalue)
{
GivePlayerMoney(playerid, inputvalue);
PlayerInfo[playerid][pBankMoney] -= inputvalue;
}
}