Dialog not showing
#1

Hello i am trying to make a dialog which will show the businesses i own but whenever i try to open the dialog nothing happens i tried crashdetect but not showing any errors this is my code:

Код:
case 2:
{
	new string4[128], string5[228];
	if(PlayerInfo[playerid][pBusinessID][0] > 0)
	{
		format(string4, sizeof(string4), "BusinessID\tBusiness Name\tBusiness Earnings\n%d\t%s\t$%d", PlayerInfo[playerid][pBusinessID][0], BusInfo[PlayerInfo[playerid][pBusinessID][0]][bName], BusInfo[PlayerInfo[playerid][pBusinessID][0]][bEarning]);
	}
	if(PlayerInfo[playerid][pBusinessID][0] == 0)
	{
		format(string4, sizeof(string4), "BusinessID\tBusiness Name\tBusiness Earnings\n-1\tNone\t$0");
	}
	if(PlayerInfo[playerid][pBusinessID][1] > 0)
	{
		format(string5, sizeof(string5), "%s\n%d\t%s\t%d", string4, PlayerInfo[playerid][pBusinessID][1], BusInfo[PlayerInfo[playerid][pBusinessID][1]][bName],BusInfo[PlayerInfo[playerid][pBusinessID][1]][bEarning]);
	}
	if(PlayerInfo[playerid][pBusinessID][1] == 0)
	{
		format(string5, sizeof(string5), "%s\n-1\tNone\t$0", string4);
	}

	ShowPlayerDialog(playerid, DIALOG_MY_BUSINESSES, DIALOG_STYLE_TABLIST_HEADERS, "My Businesses", string5, "Locate", "Back");
}
Reply


Messages In This Thread
Dialog not showing - by TrueThing - 16.03.2018, 15:35
Re: Dialog not showing - by Maximun - 16.03.2018, 15:53
Re: Dialog not showing - by TrueThing - 16.03.2018, 16:03
Re: Dialog not showing - by Maximun - 16.03.2018, 16:22
Re: Dialog not showing - by TrueThing - 16.03.2018, 16:30
Re: Dialog not showing - by iKarim - 16.03.2018, 17:06
Re: Dialog not showing - by TrueThing - 16.03.2018, 17:47
Re: Dialog not showing - by MadeMan - 16.03.2018, 17:57
Re: Dialog not showing - by TrueThing - 16.03.2018, 18:16
Re: Dialog not showing - by MadeMan - 16.03.2018, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)