Dialog not showing
#5

Код:
				case 2:
				{
                    printf("before if statment");
				    new string4[128], string5[228];
                    printf("after variable creations");
				    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]);
				    }
				    else 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]);
				    }
				    else if(PlayerInfo[playerid][pBusinessID][1] == 0)
				    {
				        format(string5, sizeof(string5), "%s\n-1\tNone\t$0", string4);
				    }
                    printf("After if statment");
				    ShowPlayerDialog(playerid, DIALOG_MY_BUSINESSES, DIALOG_STYLE_TABLIST_HEADERS, "My Businesses", string5, "Locate", "Back");
                    printf("After showdialog");
				}
yes case 2 is called this is the output
Код:
before if statment
after variable creations
After if statment
After showdialog
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: 2 Guest(s)