SA-MP Forums Archive
textdraw page - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: textdraw page (/showthread.php?tid=643453)



textdraw page - 0x88 - 20.10.2017

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);
            }
		}
	}



Re: textdraw page - 0x88 - 20.10.2017

nvm fixed