25.06.2018, 22:57
(
Последний раз редактировалось bujase1337; 25.06.2018 в 23:01.
Причина: Adding another code.
)
Script itself has no errors, but it doesn't work.
Script:
Another tryied script that has no errors, but doesn't function:
Script:
Код:
case atm_withdraw:
{
if (!response) return 1;
if(response)
{
if (inputtext[256] == 0)
if (inputtext[256] < 0)
if (PlayerInfo[playerid][pBankMoney] >= inputtext[256])
{
GivePlayerMoney(playerid, inputtext[256]);
PlayerInfo[playerid][pBankMoney] -= inputtext[256];
}
else
{
return 1;
}
}
}
Код:
case atm_withdraw:
{
if (!response) return 1;
if(response)
{
if (inputtext[256] == 0)
{
return 1;
}
else if (inputtext[256] < 0)
{
return 1;
}
else
{
if (PlayerInfo[playerid][pBankMoney] >= inputtext[256])
{
GivePlayerMoney(playerid, inputtext[256]);
PlayerInfo[playerid][pBankMoney] -= inputtext[256];
}
}
}
}


