Problem with loop
#6

You could always do what i did with my dynamic ATM system.

Nothing against you Konstantinos, Your way works just as good. I just don't like using bools in that way waste of time honestly.

pawn Код:
CMD:atm(playerid, params[])
{
    // Remove the bool
    for (new i = 1; i < MAX_ATMS; i++)
    {
        if (IsPlayerInRangeOfPoint(playerid, 3.0,aInfo[i][atmX],aInfo[i][atmY],aInfo[i][atmZ]))
        {
            if (!PlayerInfo[playerid][pAtmpass] ) ShowPlayerDialog(playerid, 5518, DIALOG_STYLE_PASSWORD, "Bank Of America", "Vali endale sobiv parool, et endale pangakonto luua", "Loo", "Sulge");
            else ShowPlayerDialog(playerid,4329, DIALOG_STYLE_PASSWORD, "Bank Of America", "Sisesta oma salasхna, et sisse logida", ">>", "Katkesta");
            // Removed atm_found = true;
            break;
        } else {
            SendClientMessage(playerid, COLOR_RED, "Sa pole ATMi lдhedal!");
            break;
        }

    }
    // Remove the if statement to check if it was found.
    return 1;
}
Reply


Messages In This Thread
Problem with loop - by AA9 - 27.12.2013, 18:17
Re: Problem with loop - by Konstantinos - 27.12.2013, 18:22
Re: Problem with loop - by AA9 - 27.12.2013, 18:29
Re: Problem with loop - by AA9 - 27.12.2013, 18:42
Re: Problem with loop - by Konstantinos - 27.12.2013, 18:48
Re: Problem with loop - by zT KiNgKoNg - 27.12.2013, 18:56
Re: Problem with loop - by Konstantinos - 27.12.2013, 18:59
Re: Problem with loop - by AA9 - 27.12.2013, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)