Menu Case Check
Hello. I am running into a problem.
I was working on a menu that gets stuff from an ini file, and I am stuck at the switch item part. Well, I can add lines for every 1 of these 128 case, case 0: case 1: and so on. My problem here si that I don't want to do this for every case, I need a script that will atomatically look for every case from 0 to 128, to set the right model. Or maybe another way of knowing which tiem was selected on the menu. Thanks ! |
Re: Menu Case Check
just store the model file name in the item info string
|
Re: Menu Case Check
Quote:
Here is how the models are displayed : Code:
case 0:Code:
public mh_MMenu(id, menu_model, item) |
Re: Menu Case Check
Code:
switch (item)Code:
tfc_setmodel(id,name,"0"); |
Re: Menu Case Check
Quote:
That would mean that I have to put 128 cases, which i don't want to. |
Re: Menu Case Check
Quote:
|
Re: Menu Case Check
Quote:
|
| All times are GMT -4. The time now is 20:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.