06.04.2018, 15:12
Quote:
can u show me where is this textdraws created and also what variable did u use? new Menu_Stats[....]?
|
Код:
#define MAX_TEXTDRAW 2 #define MAX_TEXTDRAW_ROWS 25 new Text:Menu_Title[MAX_PLAYERS]; new Text:Menu_Stats[MAX_PLAYERS]; new Text:Menu_StatsCont[MAX_PLAYERS]; new Text:Menu_End[MAX_PLAYERS]; new Text:Menu_Column1[MAX_PLAYERS][MAX_TEXTDRAW_ROWS]; new Text:Menu_Column2[MAX_PLAYERS][MAX_TEXTDRAW_ROWS]; new Menu_Options[MAX_PLAYERS]; new Menu_CurrentOptionSlot[MAX_PLAYERS]; new Menu_Item_Price[MAX_PLAYERS][MAX_TEXTDRAW_ROWS]; new Menu_Item[MAX_PLAYERS][MAX_TEXTDRAW_ROWS]; new Menu_ItemSellerid[MAX_PLAYERS]; new Menu_ItemSaleTime[MAX_PLAYERS]; new Menu_ItemLastSelect[MAX_PLAYERS]; new Menu_Items[MAX_PLAYERS]; new Menu_ItemName[MAX_PLAYERS][11][256]; new Menu_ItemPrice[MAX_PLAYERS][11]; new Menu_ItemMinPrice[MAX_PLAYERS][11]; new Menu_ItemMaxPrice[MAX_PLAYERS][11];
Код:
for (new playerid = 0; playerid < MAX_PLAYERS; playerid++) { Menu_Title[playerid] = TextDrawCreate(133.000000, 120.000000, " "); TextDrawAlignment(Menu_Title[playerid], 2); TextDrawBackgroundColor(Menu_Title[playerid], 150); TextDrawFont(Menu_Title[playerid], 3); TextDrawLetterSize(Menu_Title[playerid], 0.410000, 0.899999); TextDrawColor(Menu_Title[playerid], -1); TextDrawSetOutline(Menu_Title[playerid], 1); TextDrawSetProportional(Menu_Title[playerid], 1); TextDrawSetShadow(Menu_Title[playerid], 1); TextDrawUseBox(Menu_Title[playerid], 1); TextDrawBoxColor(Menu_Title[playerid], 150); TextDrawTextSize(Menu_Title[playerid], 0.000000, 248.000000); Menu_Stats[playerid] = TextDrawCreate(131.000000, 142.000000, " "); TextDrawAlignment(Menu_Stats[playerid], 2); TextDrawBackgroundColor(Menu_Stats[playerid], 150); TextDrawFont(Menu_Stats[playerid], 1); TextDrawLetterSize(Menu_Stats[playerid], 0.230000, 0.899999); TextDrawColor(Menu_Stats[playerid], -1); TextDrawSetOutline(Menu_Stats[playerid], 1); TextDrawSetProportional(Menu_Stats[playerid], 1); TextDrawSetShadow(Menu_Stats[playerid], 1); Menu_StatsCont[playerid] = TextDrawCreate(131.000000, 142.000000, " "); TextDrawAlignment(Menu_StatsCont[playerid], 2); TextDrawBackgroundColor(Menu_StatsCont[playerid], 150); TextDrawFont(Menu_StatsCont[playerid], 1); TextDrawLetterSize(Menu_StatsCont[playerid], 0.230000, 0.899999); TextDrawColor(Menu_StatsCont[playerid], -1); TextDrawSetOutline(Menu_StatsCont[playerid], 1); TextDrawSetProportional(Menu_StatsCont[playerid], 1); TextDrawSetShadow(Menu_StatsCont[playerid], 1); Menu_End[playerid] = TextDrawCreate(132.000000, 155.000000, " "); TextDrawAlignment(Menu_End[playerid], 2); TextDrawBackgroundColor(Menu_End[playerid], 150); TextDrawFont(Menu_End[playerid], 1); TextDrawLetterSize(Menu_End[playerid], 0.230000, 0.89999); TextDrawColor(Menu_End[playerid], -1); TextDrawSetOutline(Menu_End[playerid], 1); TextDrawSetProportional(Menu_End[playerid], 1); TextDrawSetShadow(Menu_End[playerid], 1); new Float:ChatBoxY = 156.000000; for (new r = 0; r < MAX_TEXTDRAW_ROWS; r++) { Menu_Column1[playerid][r] = TextDrawCreate(15.000000, ChatBoxY, "~y~1 ~w~- ~g~Item 1"); TextDrawBackgroundColor(Menu_Column1[playerid][r], 150); TextDrawFont(Menu_Column1[playerid][r], 1); TextDrawLetterSize(Menu_Column1[playerid][r], 0.230000, 0.899999); TextDrawColor(Menu_Column1[playerid][r], -1); TextDrawSetOutline(Menu_Column1[playerid][r], 1); TextDrawSetProportional(Menu_Column1[playerid][r], 1); TextDrawSetShadow(Menu_Column1[playerid][r], 1); Menu_Column2[playerid][r] = TextDrawCreate(198.000000, ChatBoxY, "~b~$100000000"); TextDrawBackgroundColor(Menu_Column2[playerid][r], 150); TextDrawFont(Menu_Column2[playerid][r], 1); TextDrawLetterSize(Menu_Column2[playerid][r], 0.230000, 0.899999); TextDrawColor(Menu_Column2[playerid][r], -1); TextDrawSetOutline(Menu_Column2[playerid][r], 1); TextDrawSetProportional(Menu_Column2[playerid][r], 1); TextDrawSetShadow(Menu_Column2[playerid][r], 1); ChatBoxY += 10.000000; } }