Helpadmin menu

Posts 1–12 of 12 · Page 1 of 1
admin menu
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;
}
}
Quote Originally Posted by Black666Devil666 View Post
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;
}
}
Well, you miss the threads.. one thing.

and its 8 } and 5 { it has to be tha same.
Quote Originally Posted by Jorndel View Post
Well, you miss the threads.. one thing.
which tread ?
Quote Originally Posted by Black666Devil666 View Post
which tread ?
You miss everything

Scroll up-down-sides

You miss what the menu gone do.

You miss everything
you just have the thread to open and run a menu.

( after what you post here)
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");
}
}
}
Maybe you dont have the whole code of the menu???
Quote Originally Posted by Yamato View Post
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....

Quote Originally Posted by Jorndel View Post
You miss everything

Scroll up-down-sides

You miss what the menu gone do.

You miss everything
you just have the thread to open and run a menu.

( after what you post here)
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 ^^
Quote Originally Posted by Black666Devil666 View Post
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 ^^


You joke now? nah, I am.

Well, you can't just do this:
self notifyOnPlayerCommand( "T" )
you need what the bind key is...
like:
self notifyOnPlayerCommand( "T", "+actionslot 1" )
here is a Key list: ( Also in the mp_config file...
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"
Quote Originally Posted by Jorndel View Post

here is a Key list: ( Also in the mp_config file...
why can i not thank u more XD hmm just one thank but this is a really big thanks ^^

// closed pls
Quote Originally Posted by Black666Devil666 View Post
why can i not thank u more XD hmm just one thank but this is a really big thanks ^^

// closed pls
because then you would be spamming it.

thats why


No Problem
Why am i the only one to write:
@master131
@Skyline.

Should i stop or do you appreciate it, admins?
/closed upon request.
Posts 1–12 of 12 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us