is the maximum amount of cases in a dialog 20?
#5

alright then.

pawn Код:
if(dialogid == HOUSEMENU+16 && response)
    {
        switch(listitem)
        {
            case 0: SetPVarInt(playerid, "HouseIntUpgradeMod", 1);
            case 1: SetPVarInt(playerid, "HouseIntUpgradeMod", 2);
        }
        CMDSString = "";
        Loop(i, MAX_HOUSE_INTERIORS, 0)
        {
            format(filename, sizeof(filename), HINT_FILEPATH, i);
            if(!fexist(filename)) continue;
            if(i == (MAX_HOUSE_INTERIORS-1))
            {
                switch(strlen(hIntInfo[i][IntName]))
                {
                    case 0..13: format(_tmpstring, sizeof(_tmpstring), "{00BC00}%d.\t{FFFF2A}%s\t\t\t{00BC00}$%d", (i + 1), hIntInfo[i][IntName], hIntInfo[i][IntValue]);
                    default: format(_tmpstring, sizeof(_tmpstring), "{00BC00}%d.\t{FFFF2A}%s\t\t{00BC00}$%d", (i + 1), hIntInfo[i][IntName], hIntInfo[i][IntValue]);
                }
            }
            else
            {
                switch(strlen(hIntInfo[i][IntName]))
                {
                    case 0..13: format(_tmpstring, sizeof(_tmpstring), "{00BC00}%d.\t{FFFF2A}%s\t\t\t{00BC00}$%d\n", (i + 1), hIntInfo[i][IntName], hIntInfo[i][IntValue]);
                    default: format(_tmpstring, sizeof(_tmpstring), "{00BC00}%d.\t{FFFF2A}%s\t\t{00BC00}$%d\n", (i + 1), hIntInfo[i][IntName], hIntInfo[i][IntValue]);
                }
            }
            strcat(CMDSString, _tmpstring);
        }
        ShowPlayerDialog(playerid, HOUSEMENU+15, DIALOG_STYLE_LIST, INFORMATION_HEADER, CMDSString, "Buy", "Cancel");
        return 1;
    }
thats the code...

i already made the _tmpstring to 1500... should be more than enough.
Reply


Messages In This Thread
is the maximum amount of cases in a dialog 20? - by Apenmeeuw - 16.03.2013, 13:07
Re: is the maximum amount of cases in a dialog 20? - by park4bmx - 16.03.2013, 13:08
Re: is the maximum amount of cases in a dialog 20? - by Apenmeeuw - 16.03.2013, 14:13
Re: is the maximum amount of cases in a dialog 20? - by Scenario - 16.03.2013, 14:16
Re: is the maximum amount of cases in a dialog 20? - by Apenmeeuw - 16.03.2013, 14:53
Re: is the maximum amount of cases in a dialog 20? - by park4bmx - 16.03.2013, 16:23
Re: is the maximum amount of cases in a dialog 20? - by Apenmeeuw - 16.03.2013, 23:25

Forum Jump:


Users browsing this thread: 1 Guest(s)