Raised This Month: $ Target: $400
 0% 

Dynamic Items in Menu and Plugin API


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-28-2011 , 02:29   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #51

eItemData [ItemCost] = "Value";

->

eItemData [ItemCost] = Value;
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 02-28-2011 , 17:47   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #52

I did like this as you showed. But at the end of the function value is reset to the old.

Should I use this?
ArraySetCell (g_aItems, eItemData[ItemCost], Value);
__________________


Last edited by padilha007; 02-28-2011 at 17:50.
padilha007 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-28-2011 , 21:25   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #53

Code:
new eItemData[ItemData]; ArrayGetArray(g_aItems, /* index */, eItemData); eItemData[ItemCost] = /* value */; ArraySetArray(g_aItems, /* index */, eItemData);
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 03-03-2011 , 00:11   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #54

Tnx!
__________________

padilha007 is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 04-21-2011 , 17:40   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #55

After using it;
I found some bugs.

- If u disable on of the things for the api,
Its still in the menu,
but doesn't work
__________________
Retired.
Xalus is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-21-2011 , 18:05   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #56

Quote:
Originally Posted by Xalus View Post
After using it;
I found some bugs.

- If u disable on of the things for the api,
Its still in the menu,
but doesn't work
What do you mean by disable the item?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 04-21-2011 , 18:07   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #57

See:
I made a Last-Request api with it,

I disable one of the Lr's for example Shot-For-Shot, with amxx menu

- ShotForShot is still in the LR- List
& I change map, its still in it
__________________
Retired.
Xalus is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-21-2011 , 18:20   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #58

-_-

The item is added to the list at start of the map.
When you disable the item's plugin, it is still in the core plugin's list.

Also, I'm sure you only paused it, so changing map doesn't stop the plugin from running again.
It only pauses it, that is if you even saved the paused plugins configuration in the menu.

To disable an item, you need to disable in the plugins.ini.

There are other ways you can do this with code, but it isn't necessary since this is only to show a simple menu API with sub plugins.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 04-21-2011 , 18:36   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #59

Grr

But thanks anyway,
I will try to find a way.
__________________
Retired.
Xalus is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 04-28-2011 , 20:17   Re: Dynamic Items in Menu and Plugin API
Reply With Quote #60

I made shopmenu3 with Api. works cool
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne 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 06:51.


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