Raised This Month: $51 Target: $400
 12% 

Dynamic Items in Menu and Plugin API


Post New Thread Reply   
 
Thread Tools Display Modes
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 04-17-2010 , 23:58   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #21

Great tutorial. Thanks.
AfteR. is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 04-18-2010 , 03:16   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #22

Exolent, you repeated the tutorial 2 times.

Btw, nice job.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-18-2010 , 03:21   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #23

Quote:
Originally Posted by Alucard^ View Post
Exolent, you repeated the tutorial 2 times.
No I didn't.

Quote:
Originally Posted by Exolent[jNr] View Post
Added specific callback function example.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 04-18-2010 , 05:03   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #24

Quote:
Originally Posted by wrecked_ View Post
Pages:
  • First Page
    • 9 - More
    • 0 - Exit
  • Middle Pages
    • 9 - More
    • 0 - Back
  • Last Page
    • 0 - Back

About your second question; yes, that'd work if you were able to manually have clients connect like that, but I'm pretty sure Valve patched that. Not sure, though.
  • First Page
    • 1 - g_serwer[1]
    • 2 - g_serwer[2]
    • 3 - g_serwer[3]
    • 4 - g_serwer[4]
    • 6 - g_serwer[5]
    • 7 - g_serwer[6]
    • 8 - g_serwer[7]
    • 9 - More
    • 0 - Exit
  • Second Pages
    • 1 - g_serwer[8]
    • 2 - g_serwer[9]
    • 3 - g_serwer[10]
    • 4 - g_serwer[11]
    • 6 - g_serwer[12]
    • 7 - g_serwer[13]
    • 8 - g_serwer[14]
    • 9 - More
    • 0 - Back
  • Last Page
    • 1 - g_serwer[15]
    • 2 - g_serwer[16]
    • 3 - g_serwer[17]
    • 4 - g_serwer[18]
    • 6 - g_serwer[19] <-- If I'll chose this
    • 7 - g_serwer[20]
    • 8 - g_serwer[21]
    • 0 - Back

It will connect with g_ip[19] according to my second question?
FiFiX is offline
Send a message via Skype™ to FiFiX
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 04-18-2010 , 11:30   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #25

Array indices begin at 0. So if you pick 7, you should get g_serwer[6]. It all depends on your for loop. If you're starting from 1, you won't get the first server from the array.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 04-18-2010 , 11:57   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #26

Anyway, if there is on third page 7. g_serwer[18]
and I'll make new key = str_to_num(szNum)
and use g_ip[key] key will be = 18?

Last edited by FiFiX; 04-18-2010 at 12:08.
FiFiX is offline
Send a message via Skype™ to FiFiX
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 04-18-2010 , 12:01   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #27

What? If you want the key to correspond with the server indice, just do client_cmd( id, "Connect %s", serwer[key-1] )
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 04-18-2010 , 12:19   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #28

But it will be working fine on page higher than one? I'm not sure if szKey is number which someone pressed, or number of item in menu(including or not including 9. Back and 0. Exit)
FiFiX is offline
Send a message via Skype™ to FiFiX
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 04-18-2010 , 13:18   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #29

Don't worry about the back and next items, they don't count when you get the data (menu_item_getinfo), so your key will be the same as what you added in the menu_additem.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-18-2010 , 13:29   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #30

You are getting off topic. Make another thread in Scripting Help.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 07:01.


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