0.3 menu
#8

yea, but it wont work. here is the script where it goes to the 3rd level:

Код:
	if(dialogid == DIALOGID+1) // points
	{
	new s[128];
	format(s,sizeof(s),"Points: %i\n\nCost: %i$",PointsQuantity,gCheckout[playerid]);
	ShowPlayerDialog(playerid, DIALOGID+3,0,"Points",s,"Buy","Back");               //goes to 3 here
	}
	else if(dialogid == DIALOGID+2) // info
	{
	return 1;
 }
	else if(dialogid == DIALOGID+3 && CurrMoney >= gCheckout[playerid]) // Buy points
	{
       new PointsStringbought[128];
	format(PointsStringbought,sizeof(PointsStringbought),"You have bought %i Points for $%i",PointsQuantity,gCheckout[playerid]);
	GivePlayerMoney(playerid,-gCheckout[playerid]);
 	PInfo[playerid][Points] = PInfo[playerid][Points]+PointsQuantity;
 	ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "TITLE", "Enter\nBuy Points\n Information", "Select", "Cancel");
 	return 1;
  }
i think there should be a better and more organisable way to do this?
Reply


Messages In This Thread
0.3 menu - by thuron - 26.10.2009, 21:10
Re: 0.3 menu - by thuron - 27.10.2009, 09:10
Re: 0.3 menu - by SiJ - 27.10.2009, 12:16
Re: 0.3 menu - by thuron - 27.10.2009, 16:30
Re: 0.3 menu - by thuron - 27.10.2009, 17:03
Re: 0.3 menu - by Joe Staff - 27.10.2009, 18:09
Re: 0.3 menu - by Daren_Jacobson - 27.10.2009, 18:46
Re: 0.3 menu - by thuron - 27.10.2009, 18:52
Re: 0.3 menu - by thuron - 27.10.2009, 19:11
Re: 0.3 menu - by Daren_Jacobson - 27.10.2009, 19:13

Forum Jump:


Users browsing this thread: 2 Guest(s)