Raised This Month: $ Target: $400
 0% 

Handle Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-19-2013 , 15:15   Re: Handle Menu
Reply With Quote #1

you can find it here in forum.
I already release the plugin. This is something that i want add for next plugin version
And the other part of code isnt really necessary if you really know do what iam asking for.
__________________
Jhob94 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-19-2013 , 17:38   Re: Handle Menu
Reply With Quote #2

not post full code, the previous functions has important things, if code is private look for you scripter.

Its a Open Source forum for many reasons, if you have a private code contact the author, if its a ripped code or other, its a cost of piracy.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-19-2013 , 18:42   Re: Handle Menu
Reply With Quote #3

Are you serious?
What about read the posts no?
If you dont know help, so dont make posts that arent necessary.
I already said this is my plugin and that it is on new plugins submissions, and that this that iam asking for is for use in next version.
And lol you said is possible me do piracy -.-
Just read all, instead of make this shit posts
__________________

Last edited by Jhob94; 04-19-2013 at 18:43. Reason: fix
Jhob94 is offline
Alekkkk
Member
Join Date: Mar 2012
Location: Bulgaria
Old 04-19-2013 , 19:15   Re: Handle Menu
Reply With Quote #4

You can calculate which page you should display by divide the pressed key by the number of items per page.

For example if you have 7 songs per page it will be:

key = 5 ( page 1 )

key/7 = 0.71...

so you should display:

floatround( key/7, floatround_floor )
__________________

Last edited by Alekkkk; 04-19-2013 at 19:16.
Alekkkk is offline
Send a message via Skype™ to Alekkkk
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-19-2013 , 20:08   Re: Handle Menu
Reply With Quote #5

OMG post the thread of the plugin its simple, i not understand the difficulty in post one link in this page.

I dont know help? YES! maybe you not have included the code!
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-19-2013 , 20:51   Re: Handle Menu
Reply With Quote #6

Alekkkk thanks, gonna do that.
Smiley as you see alekkkk gave me an good answer and didnt needed full code. Why? Because that is really not necessary, you just tried found an excuse for didnt know how to do what i asked...
__________________
Jhob94 is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-20-2013 , 12:10   Re: Handle Menu
Reply With Quote #7

Quote:
Originally Posted by Jhob94 View Post
Alekkkk thanks, gonna do that.
Smiley as you see alekkkk gave me an good answer and didnt needed full code. Why? Because that is really not necessary, you just tried found an excuse for didnt know how to do what i asked...
Maybe we didn't get your point because the solution was too easy and obviously if you understand the params of menu_displays.

PHP Code:
menu_display(idMyMenu, >>>2<<<) 
It is to obviously that you need to divide your items through items per page. Not???
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-20-2013 , 13:23   Re: Handle Menu
Reply With Quote #8

If you want to open again the current page you can do this :

menu_display(id, menu, GetUserMenuPage( id ));

PHP Code:
GetUserMenuPageid )
{
    new 
crappage;
    
player_menu_info(idcrapcrappage);
    return 
page;

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-20-2013 , 17:23   Re: Handle Menu
Reply With Quote #9

Quote:
Originally Posted by ConnorMcLeod View Post
If you want to open again the current page you can do this :

menu_display(id, menu, GetUserMenuPage( id ));

PHP Code:
GetUserMenuPageid )
{
    new 
crappage;
    
player_menu_info(idcrapcrappage);
    return 
page;

I should use GetUserMenuPage as stock?
__________________
Jhob94 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-20-2013 , 18:10   Re: Handle Menu
Reply With Quote #10

As private function, but use it only in a menu handler.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:50.


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