Textdraw strings not showing when 4+ players online
#1

I'm trying to make an /inventory command for my server, it uses 8 different strings and works fine when I test it in-game on my own. The problem is that when there are 4+ players online, the textdraw and strings work properly for 2 of the players, but when either of the other 2 players use the /inventory command the textdraw box opens but as an empty textdraw with no information/strings showing for them (they also get the Unknown Command error in the chat although the textdraw itself (without the text/strings) opens.

the TD_MENU_INFO textdraw works without problems when used in other commands such as /info but is broken for /inventory.
Does anybody have any idea what could be causing this and how to fix it? I have a feeling its a problem with the strings but my knowledge of textdraws is pretty limited

/inventory command:
Код:
COMMAND:inventory(playerid,params[])
{
    new string[512],CHstr[256],Hstr[256],Beltstr[256],Crowstr[256],Rodstr[256],Ifixstr[256],Flipstr[256];

    if (PlayerInfo[playerid][pCharm] == 0)format(CHstr, sizeof(CHstr), "~w~You Do ~r~Not ~w~Have A ~p~Lucky Charm");else format(CHstr, sizeof(CHstr), "~g~You Have A ~p~Lucky Charm");
	if (PlayerInfo[playerid][pHealthIns] > 0)format(Hstr, sizeof(Hstr), "~g~You Have Health Insurance");else format(Hstr, sizeof(Hstr), "~w~You Currently Do ~r~Not ~w~Have ~p~Health Insurance");
	if (PlayerInfo[playerid][pChastityBelt] == 0) format(Beltstr, sizeof(Beltstr),"~r~No");else format(Beltstr, sizeof(Beltstr),"~g~Yes");
	if (PlayerInfo[playerid][pCrowbar] == 0) format(Crowstr, sizeof(Crowstr),"~r~No");else format(Crowstr, sizeof(Crowstr),"~g~Yes");
	if (PlayerInfo[playerid][pFishingRod] == 0) format(Rodstr, sizeof(Rodstr),"~r~No");else format(Rodstr, sizeof(Rodstr),"~g~Yes");
	if (PlayerInfo[playerid][TrackKit] == 0) format(Ifixstr, sizeof(Ifixstr),"~r~No");else format(Ifixstr, sizeof(Ifixstr),"~g~Yes");
	if (PlayerInfo[playerid][FlipKit] == 0) format(Flipstr, sizeof(Flipstr),"~r~No");else format(Flipstr, sizeof(Flipstr),"~g~Yes");

    HideTextDrawMenu(playerid);

	ShowTextDrawMenu(playerid, TD_MENU_INFO,"~y~INVENTORY", 24, 0);//   pet   ins              //charm                       //belt         //condoms             //crowbar                 //fish                 //Rod                                    //ifix        //Repair kit         //flipkit     /credits
	format(string, sizeof(string), "~n~Cash: ~g~$%d  ~w~Bank: ~g~$%d~n~~n~~w~Pet: ~p~%s~n~~n~%s~n~~n~~w~%s~n~~n~~w~Chastity Belt: %s~n~~w~Adrenaline Pills: ~p~%d ~n~~w~~w~Condoms ~p~%d ~n~~n~~w~Fishing Rod: ~p~%s~n~~w~Fish: ~p~%d~n~~n~~w~Crowbar: ~p~%s~n~~w~InstaFix: %s ~n~~w~Flip Kit: %s ~n~~w~Repair Kits: ~p~%d~n~~w~Vehicle Credits: ~p~%d~n~~n~~w~You Are Carrying ~g~%d Grams ~w~Of Drugs",

	GetPlayerCash(playerid),
	PlayerInfo[playerid][pBank],
	PetNames[PlayerInfo[playerid][pPet]],
	Hstr,
	CHstr,
	Beltstr,
	PlayerInfo[playerid][pPills],
	PlayerInfo[playerid][pCondom],
	Rodstr,
	PlayerInfo[playerid][pFishes],
	Crowstr,
	Ifixstr,
	Flipstr,
	PlayerInfo[playerid][FixKit],
	PlayerInfo[playerid][pVehCredit],
	PlayerInfo[playerid][pDrugs]);


	ShowTextDrawMenuItems(playerid, 0, string, " ", " ",0);
	return 1;
}
/inventory textdraw when less than 4 players online:
Reply
#2

ShowTextDrawMenuItems is not a default function, can you post up a code?
Reply
#3

Quote:
Originally Posted by Mugala
Посмотреть сообщение
ShowTextDrawMenuItems is not a default function, can you post up a code?
Stock ShowTextDrawMenu
Код:
stock ShowTextDrawMenu(playerid, menuid, title[], lines, options)
{
	new string[256];
	HideTextDrawMenu(playerid);

	switch (lines)
	{
		case 1: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 2: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 3: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 4: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 5: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 6: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 7: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 8: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 9: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 10: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 11: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 12: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 13: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 14: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~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~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 29: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
		case 30: format(string, sizeof(string), " ~n~%s~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ", title);
	}

	TextDrawSetString(Menu_Title[playerid], string);
	TextDrawShowForPlayer(playerid, Menu_Title[playerid]);


	if (options > 0)
	{
	format(string, sizeof(string), "Press (~y~T~w~) Or (~y~F6~w~) And Enter A Number~n~Press ~y~LMB ~w~To Close This Box");
	}else{
	format(string, sizeof(string), "Press ~y~LMB Or ~y~N ~w~To Close This Box");
	}

	switch (lines)
	{
		case 1: format(string, sizeof(string), "%s", string);
		case 2: format(string, sizeof(string), "%s", string);
		case 3: format(string, sizeof(string), " ~n~%s", string);
		case 4: format(string, sizeof(string), " ~n~ ~n~%s", string);
		case 5: format(string, sizeof(string), " ~n~ ~n~ ~n~%s", string);
		case 6: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~%s", string);
		case 7: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 8: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 9: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 10: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 11: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 12: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 13: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 14: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 15: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 16: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 17: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 18: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 19: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 20: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 21: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n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~%s", string);
		case 29: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
		case 30: format(string, sizeof(string), " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%s", string);
	}

	TextDrawSetString(Menu_End[playerid], string);
	TextDrawShowForPlayer(playerid, Menu_End[playerid]);

	Menu_Options[playerid] = options;
	PlayerInfo[playerid][pTextdraw] = menuid;

}
Stock ShowTextDrawMenuItems
Код:
stock ShowTextDrawMenuItems(playerid, row, stats[], column1[], column2[],item_price,item = 0)
{
	if (row == 0)
	{
	TextDrawSetString(Menu_Stats[playerid], stats);
	TextDrawSetString(Menu_StatsCont[playerid], " ");

    TextDrawShowForPlayer(playerid, Menu_Stats[playerid]);
    TextDrawShowForPlayer(playerid, Menu_StatsCont[playerid]);
	}else{
	TextDrawSetString(Menu_Column1[playerid][row], column1);
	TextDrawSetString(Menu_Column2[playerid][row], column2);
	TextDrawShowForPlayer(playerid, Menu_Column1[playerid][row]);
	TextDrawShowForPlayer(playerid, Menu_Column2[playerid][row]);
	}
	Menu_Item_Price[playerid][row] = item_price;
	Menu_Item[playerid][row] = item;
}
Reply
#4

can u show me where is this textdraws created and also what variable did u use? new Menu_Stats[....]?
Reply
#5

Quote:
Originally Posted by Mugala
Посмотреть сообщение
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];
OnGameModeInit
Код:
	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;
	}
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)