How could i use menus with strings in them??
#5

I understand that, but check this out. So i have a menu. I create OnGameModeInit:

AddMenuItem(examplemenu, 0, "BUY");
AddMenuItem(examplemenu, 1, "$150");

So now i would have to create 10 different menus that have BUY in them and prices, because of the different costs? Because lets say this is were i start of:

examplemenu = CreateMenu("Guns", 1, 200.0, 100.0, 150.0, 150.0);
AddMenuItem(examplemenu, 0, "Deagle");
AddMenuItem(examplemenu, 0, "9mm");

Now lets say i select one of these and then my menu is this for lets say deagle:

examplemenu2 = CreateMenu("Guns", 2, 200.0, 100.0, 150.0, 150.0);
AddMenuItem(examplemenu2, 0, "BUY");
AddMenuItem(examplemenu2, 1, "$150");

So if i wanted to do it like this, then for selecting lets say the 9mm option, i would have to have yet another menu created just to have BUY and price in it? Because i do not want prices in the first selection menu. I want it to be like, you select what you want and then it says the to buy it and the price. So again my question is that, i would have to keep on creating new menus because of the differentiating costs??
Reply


Messages In This Thread
How could i use menus with strings in them?? - by Type-R - 02.09.2016, 03:42
Re: How could i use menus with strings in them?? - by SickAttack - 02.09.2016, 03:46
Re: How could i use menus with strings in them?? - by Type-R - 02.09.2016, 04:16
Re: How could i use menus with strings in them?? - by SickAttack - 02.09.2016, 04:20
Re: How could i use menus with strings in them?? - by Type-R - 02.09.2016, 04:30
Re: How could i use menus with strings in them?? - by SickAttack - 02.09.2016, 04:47

Forum Jump:


Users browsing this thread: 1 Guest(s)