if item is in vault --> item in menu = \d
Hello guys, I am using this plugin https://amxx.pl/index.php?app=core&m...ttach_id=30680
which is called missions https://amxx.pl/topic/72044-misje-qu...rsja-4-update/ And I would like to make this: Once you are done with one quest, that quest in menu would be other color (for example \d) Menu function is Menu_Questow(id) but I can not figure out the way how to do it. I tried if(LoadQuest(id, item)) but there must be some kind of for cycle and I have no idea which. Could you help me a little bit? Thank you. |
Re: if item is in vault --> item in menu = \d
Can you please be more clear in posts you make?
You should include your code, we can't help you with a single line of code. OR AT LEAST describe what's your point of plugin you want to make... |
Re: if item is in vault --> item in menu = \d
Yeah, this is the code I would like to edit.
Code:
public Menu_Questow(id)There is function Code:
menu_first_handle(id, menu, item)Code:
case KILL: formatex(formats, 127, "Zabij %i osob Nagroda: %i expa", ArrayGetCell(gIleRazy, i), ArrayGetCell(gNagroda, i))Code:
if(LoadQuest(id, item)){Code:
public menu_handle(id, menu, item)Code:
public menu_handle(id, menu, item)Code:
if(LoadQuest(id, item)){ |
Re: if item is in vault --> item in menu = \d
I think the problem is in the first menu, you have to set menu properties (Exit, next & back - Optional). And in the second (I believe) menu you show menu and right after that you destroy it.
But I don't fully understand what do you exactly mean, but I think you want to check if an x specific item exists in menu (right?) Then the best way to do that is when you add items to menu (for i loop) you should check if item[i] has title/text/id you want, if yes, make custom (global - in the begging of the code) boolean and set it to true. And if menu has x item (true boolean) continue your code. |
Re: if item is in vault --> item in menu = \d
exactly, check the item in menu (it should be saving to nvault whether it's set to 0 or 1). tried to do it with global in the beginning, but still did not figure out how [i] is works in menu handler function. could you show me what exactly you mean? I am not sure about all that.
|
Re: if item is in vault --> item in menu = \d
Sorry for late reply, I created this EXAMPLE code but I haven't tested it. (Should be working in my opinion)
PHP Code:
|
Re: if item is in vault --> item in menu = \d
Yes, got it. Thank you! :)
|
| All times are GMT -4. The time now is 07:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.