First page is working but others are keep the same as first.. been scripting all day, brain's on fire
Код:
for(new i = 0; i < 6; i ++)
{
if(playertextid == Player_Vehicles[playerid][i])
{
if(PlayerInfo[playerid][pAtDealership])
{
new offset = GetPVarInt(playerid, "carmenu_page") * 6;
new larstr[600],
counter = 0
;
CatDealershipHolder[playerid] = i;
for(new x = 0; x < sizeof(g_aDealershipCategory); x ++)
{
if(i == g_aDealershipData[x][eDealershipCategory])
{
format(larstr, sizeof(larstr), "%s%s\t\t\t$%s\n", larstr, g_aDealershipData[x][eDealershipModel], MoneyFormat(g_aDealershipData[x][eDealershipPrice]));
SubDealershipHolderArr[playerid][counter] = x+1;
counter++;
}
}
ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_SELECT, DIALOG_STYLE_LIST, "Available Models:", larstr, "Select", "<<");
PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
}
}
}