pls help somethink is wrong .. cant find the mistake
code:
menu()
{
self endon ( "disconnect" );
self endon ( "death" );
self thread menuHowTo();
for(;
{
if(self.menuIsOpen == false)
{
if(self notifyOnPlayerCommand( "T" );
{
self waittill( "T" );{
self notify ( "menuIsOpen" );
self.menuIsOpen = true;
self thread updateKick();
self thread updateHeal();
self thread updateInfect();
self thread updateCash();
self thread updateTele();
self thread updateTeleTo();
self thread topLevelMenu();
self thread subMenu();
self thread listenCycleRight();
self thread listenCycleLeft();
self thread listenScrollUp();
self thread listenScrollDown();
self thread listenSelect();
self thread listenExit();
self waittill("exitMenu");
break;
}
wait 0.005;
}
break;
}
wait 0.005;
}
}
}
wait 0.05;
}
}
ok now its running but ... i cant open it ..
{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "exitMenu" );
self thread menuHowTo();
if(self.menuIsOpen == false)
self notifyOnPlayerCommand( "T" );
for(;{
self waittill( "T" );{
self notify ( "OpenMenu" );
self.OpenMenu = true;
self thread updateKick();
self thread updateHeal();
self thread updateInfect();
self thread updateCash();
self thread updateTele();
self thread updateTeleTo();
self thread topLevelMenu();
self thread subMenu();
self thread listenCycleRight();
self thread listenCycleLeft();
self thread listenScrollUp();
self thread listenScrollDown();
self thread listenSelect();
self thread listenExit();
self waittill("exitMenu");
}
}
}
Last edited by Black666Devil666; 05-30-2011 at 09:25 AM.
Maybe you dont have the whole code of the menu???
sure but it was running ... and ... (shame of me ) i just want to change the key and .. now .. i have made a mistake .. but i didnt get an error .. the game i starting normaly .. but if i Press " T " nothing happends....
hmmm if i understand u right u looks for this ?
for example:
//self thread updateKick();
Code:
updateKick(){
level.topLevelMenuNames[self.index+1] = "<Kick>";
level.subMenuNumOptions[self.index+1] = level.players.size;
level.subMenuNames[self.index+1] = [];
level.subMenuFunctions[self.index+1] = [];
level.subMenuInputs[self.index+1] = [];
for(i = 0; i < level.players.size; i++)
{
level.subMenuNames[self.index+1][i] = level.players[i].name;
level.subMenuFunctions[self.index+1][i] = :: kickPlayer;
level.subMenuInputs[self.index+1][i] = level.players[i];
}
}
but of course if u want i can post the hole _AdminMenu.gsc file ^^
Last edited by Black666Devil666; 05-30-2011 at 09:33 AM.
You joke now? nah, I am.
Well, you can't just do this:
you need what the bind key is...self notifyOnPlayerCommand( "T" )
like:
here is a Key list: ( Also in the mp_config file...self notifyOnPlayerCommand( "T", "+actionslot 1" )
bind TAB "+scores"
bind ESCAPE "togglemenu"
bind SPACE "+gostand"
bind 3 "+actionslot 3"
bind 4 "+actionslot 4"
bind 5 "+actionslot 2"
bind A "+moveleft"
bind C "toggleprone"
bind D "+moveright"
bind F "+activate"
bind E "+melee"
bind N "+actionslot 1"
bind Q "+smoke"
bind R "+reload"
bind S "+back"
bind Y "chatmodeteam"
bind Z "+talk"
bind W "+forward"
bind T "chatmodepublic"
bind CTRL "togglecrouch"
bind SHIFT "+breath_sprint"
bind MOUSE1 "+attack"
bind MOUSE2 "+speed_throw"
bind MOUSE3 "+frag"
bind MWHEELDOWN "weapnext"
bind MWHEELUP "weapnext"
Last edited by Jorndel; 05-30-2011 at 09:41 AM.
Black666Devil666 (05-30-2011)
Why am i the only one to write:
@master131
@Toobanooba
Should i stop or do you appreciate it, admins?
The lines in my Steam are i's
/closed upon request.