16.03.2013, 14:53
alright then.
thats the code...
i already made the _tmpstring to 1500... should be more than enough.
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;
}
i already made the _tmpstring to 1500... should be more than enough.