27.12.2013, 18:56
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.
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;
}

