Post: How to list mods on menu...
04-14-2012, 08:39 PM #1
Kearney158
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); Okay, I want a way to list each mod that I have in a menu. eg...forge mode, ufo, unlimited ammo..etc

The name of each mod is set like this...

self.MenuText[Menu][Number] = Text;
///the 'Menu' and 'Number' are given as an input to the function. For example you could have.....
self.MenuText[fun][0] = UFO; ///////////etc etc


So I wrote the following. My question is, will this work and/or is there a better way of doing it??

    listMods();
{
menuArray = getArrayKeys(self.MenuText);

for (i=0; i < menuArray.size; i++)
{
subMenuArray = getArrayKeys(self.MenuText[menuArray[i]]);
wait .1;
for (j=0; j < subMenuArray.size; j++)
{
modName = self.MenuText[menuArray[i]][subMenuArray[j]];
self iprintln(modName);
wait .1;
}

}
}
(adsbygoogle = window.adsbygoogle || []).push({});
04-14-2012, 09:21 PM #2
Taylor
Former Black Knight.
Originally posted by Kearney158 View Post
Okay, I want a way to list each mod that I have in a menu. eg...forge mode, ufo, unlimited ammo..etc

The name of each mod is set like this...

self.MenuText[Menu][Number] = Text;
///the 'Menu' and 'Number' are given as an input to the function. For example you could have.....
self.MenuText[fun][0] = UFO; ///////////etc etc


So I wrote the following. My question is, will this work and/or is there a better way of doing it??

    listMods();
{
menuArray = getArrayKeys(self.MenuText);

for (i=0; i < menuArray.size; i++)
{
subMenuArray = getArrayKeys(self.MenuText[menuArray[i]]);
wait .1;
for (j=0; j < subMenuArray.size; j++)
{
modName = self.MenuText[menuArray[i]][subMenuArray[j]];
self iprintln(modName);
wait .1;
}

}
}


That Will Problay Work But WHy Are You Using iPrintln?
04-14-2012, 09:27 PM #3
Kearney158
Bounty hunter
Originally posted by xYARDSALEx View Post
That Will Problay Work But WHy Are You Using iPrintln?


Great, see I can't test at the min that's why I'm wondering if it'll work. Emm I kinda just threw iprintln in there without really thinking, I was concentrating more on whether or not it would list them correctly...
04-14-2012, 10:35 PM #4
Taylor
Former Black Knight.
Originally posted by Kearney158 View Post
Great, see I can't test at the min that's why I'm wondering if it'll work. Emm I kinda just threw iprintln in there without really thinking, I was concentrating more on whether or not it would list them correctly...


im pretty sure it wud work, i just looked quick but yea

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo