for loop question
#2

Try this, but I'm not sure it will help

Код:
new string2[200];
        for(new i = 0;i != MAX_AUTOHAUS;i++) {
            if(IsPlayerInRangeOfPoint(playerid, 3, AutoHaus[i][aX], AutoHaus[i][aY], AutoHaus[i][aZ])) {
                for(new n = 0;n < sizeof(AutoHausAuto);n++) {
                    if (n == 1) {
                        format(string2, 200, "%s", CarName[AutoHausAuto[n][aAutoID] - 400]);
                    } else {
                        format(string2, 200, "%s\n%s", string2, CarName[AutoHausAuto[n][aAutoID] - 400]);
                    }
                }
            }
        }
        ShowPlayerDialog(playerid, DIALOG_AUTOHAUS, DIALOG_STYLE_LIST, "Autohaus", string2, "Weiter", "");
Reply


Messages In This Thread
for loop question - by MrPlaysino - 04.04.2014, 21:17
Re: for loop question - by CoaPsyFactor - 04.04.2014, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)