Re: Dynamic Items in Menu and Plugin API
Great tutorial. Thanks.
|
Re: Dynamic Items in Menu and Plugin API
Exolent, you repeated the tutorial 2 times.
Btw, nice job. |
Re: Dynamic Items in Menu and Plugin API
Quote:
Quote:
|
Re: Dynamic Items in Menu and Plugin API
Quote:
It will connect with g_ip[19] according to my second question? |
Re: Dynamic Items in Menu and Plugin API
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.
|
Re: Dynamic Items in Menu and Plugin API
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? |
Re: Dynamic Items in Menu and Plugin API
What? If you want the key to correspond with the server indice, just do client_cmd( id, "Connect %s", serwer[key-1] )
|
Re: Dynamic Items in Menu and Plugin API
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)
|
Re: Dynamic Items in Menu and Plugin API
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.
|
Re: Dynamic Items in Menu and Plugin API
You are getting off topic. Make another thread in Scripting Help.
|
All times are GMT -4. The time now is 14:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.