Post: Coding questions
04-14-2012, 07:25 AM #1
GE90
< ^ > < ^ >
(adsbygoogle = window.adsbygoogle || []).push({}); can someone tell me if this code is correct, im using dcconners clean menu.


    

getSubMenu1(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "^5Self Menu";
menu.name[1] = "Level 70";
menu.name[2] = "Unlock All";
menu.name[3] = "Infinite Ammo";
menu.name[4] = "Infections Package";
menu.name[5] = "Stats";

menu.function[1] = ::do70;
menu.function[2] = ::completeAllChallenges;
menu.function[3] = ::doAmmo;
menu.function[4] = maps\mp\_utility::doDvars;
menu.function[5] = ::doStats;

menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";

return menu;
}



i pasted all the inputs exept for that dvars in the missions.gsc.

and can someone tell me what the menu.input does?
(adsbygoogle = window.adsbygoogle || []).push({});
04-14-2012, 07:34 AM #2
h4344
Haxor!
Looks Good to me. As for the input it may just be the key used to select it, (spacebar im guessing).

Edit: After reading around it looks like input is so the functions your referring to know what to use.

The following user thanked h4344 for this useful post:

GE90
04-14-2012, 07:38 AM #3
Blackstorm
Veni. Vidi. Vici.
Yeah it's good. And input is just extra arguments (parameters) for the function. They're not needed if you don't need any arguments filled out in the function.

The following 2 users say thank you to Blackstorm for this useful post:

Mythusala, GE90
04-14-2012, 01:03 PM #4
GE90
< ^ > < ^ >
Originally posted by Blackstorm View Post
Yeah it's good. And input is just extra arguments (parameters) for the function. They're not needed if you don't need any arguments filled out in the function.


so in the player menu, to derank someone, i would put self.input where menu.input is
04-15-2012, 03:04 PM #5
Shadoh
Wobble Bass
Answered.
Closed.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo