if( whatever ) add to const
Hello, lets say i have an enum and a const:
PHP Code:
|
Re: if( whatever ) add to const
Just leave it as is and don't use ITEM3 if you don't need it.
|
Re: if( whatever ) add to const
Its like this:
I got 2 plugin and 1 include, I have a native called server_type and 1 param wich is type. And in plugin #1 i have a global variable called g_serverType and i wanna chcek if g_serverType is 0 and if it is 0 it shud att item 3 if it is anything else but 0 it should skip item 3 and go to item 4 or simply not add item 3. Understand? |
Re: if( whatever ) add to const
Quote:
|
Re: if( whatever ) add to const
So its not possible to do that? :(
Well ill just make an if in the menu and check if item == item3 and if so ill skip the item. Thanks anyways. |
Re: if( whatever ) add to const
Quote:
|
Re: if( whatever ) add to const
If plugin2.amxx is running on the server then item3 wont be added because plugin2.amxx adds something else that does almost the same.
If both item3 is in menu and plugin2.amxx is running and i buy item3 and i also buy something in plugin2.amxx then plugin2.amxx will intefere plugin1.amxx and that isnt good. |
Re: if( whatever ) add to const
Skip ITEM3 if you don't want it in there.
|
Re: if( whatever ) add to const
U dont quite understand what i want.
Maybe you didnt understand i want this to be like an API.... if(plugin_running(plugin2.amxx) itemdelete(item3)) |
Re: if( whatever ) add to const
Use dynamic arrays.
|
| All times are GMT -4. The time now is 05:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.