AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem With blank (https://forums.alliedmods.net/showthread.php?t=241231)

Fuck For Fun 05-30-2014 13:50

Problem With blank
 
Why always, I add it to this line menu
Code:

menu_addblank( iMenu );
So in the server I open the menu, and exit from menu it is always 9 or 10 to Exit -.-

and no 0

Spawner30 05-31-2014 14:34

Re: Problem With blank
 
theres 2 method to do a space in menu

1 -
PHP Code:

menu_addblankiMenu 0); 

2 -
PHP Code:

menu_additemiMenu,"^n","",0


Fuck For Fun 05-31-2014 14:38

Re: Problem With blank
 
Quote:

Originally Posted by Spawner30 (Post 2144918)
wtf ! so theres 2 mothed to do a space in menu

1 - Code:
menu_addblank( iMenu,0 );

2 - Code:
menu_additem( "What ever <b>^n</b>", "" ,0 );

Lol Do not be shocked ..

I'm also a bit shocked by what you said
Code:

<b>^n</b>
I know ^n, but I do it
It makes the next case to change with colors, and not work, or if I set the color red, then in server will see a gray in menu..

Spawner30 05-31-2014 14:41

Re: Problem With blank
 
Update !
so give me your code here .

Fuck For Fun 05-31-2014 14:50

Re: Problem With blank
 
Quote:

Originally Posted by Spawner30 (Post 2144923)
Update !
so give me your code here .

I have a question, before I bring you the code.

What is more convenient to use
>
If possible at all, something like this
Code:

menu_additem (iMenu, "Top15", ADMIN_KICK);
Or use what I now use
Code:

menu_additem (iMenu, "Top15", _, _, iCallback);

Spawner30 05-31-2014 14:56

Re: Problem With blank
 
this is 2 different code. the first is better . i think the seconde is false . as i think you wan't a callback function ?

YamiKaitou 05-31-2014 14:58

Re: Problem With blank
 
What exactly are you trying to do?

Quote:

Originally Posted by Spawner30 (Post 2144937)
this is 2 different code. the first is better because the seconde you have to create a callback function + save it .

The first won't compile

Spawner30 05-31-2014 15:03

Re: Problem With blank
 
Lol i miss that one ! :v

Fuck For Fun 05-31-2014 15:36

Re: Problem With blank
 
Fixed

Freezo Begin 05-31-2014 16:17

Re: Problem With blank
 
what are you trying to do in this menu ???


All times are GMT -4. The time now is 09:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.