Doesn't work Y_Ini atm withdraw
#1

Script itself has no errors, but it doesn't work.

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;
				}
			}
		}
Another tryied script that has no errors, but doesn't function:
Код:
		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];
					}
				}
			}
		}
Reply


Messages In This Thread
Doesn't work Y_Ini atm withdraw - by bujase1337 - 25.06.2018, 22:57
Re: Doesn't work Y_Ini atm withdraw - by bujase1337 - 26.06.2018, 10:38
Re: Doesn't work Y_Ini atm withdraw - by Sasino97 - 26.06.2018, 11:07
Re: Doesn't work Y_Ini atm withdraw - by GTLS - 26.06.2018, 15:00
Re: Doesn't work Y_Ini atm withdraw - by bujase1337 - 26.06.2018, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)