Raised This Month: $ Target: $400
 0% 

please help me about MenuAction_Select


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lovemf
BANNED
Join Date: May 2009
Old 07-31-2009 , 05:56   please help me about MenuAction_Select
Reply With Quote #1

how can i get MenuAction_Select in MenuAction_VoteEnd

i want make a votemap plug

i use
Code:
public Help_CustomMenuHandler(Handle:menu, MenuAction:action, param1, param2) 
{
 if (action == MenuAction_End) 
 {
  CloseHandle(menu);
 } 
 else if (action == MenuAction_Select)
 {
 new String:itemval[32];
 new String:itemval1[32];
 GetMenuItem(menu, param2, itemval, sizeof(itemval));
 GetMenuItem(menu, param2, "", 0, _, itemval1, sizeof(itemval1));
 PrintToChatAll("\x04[%N] \x03 command:%s   type:%s",param1,itemval,itemval1);
 }
}
can show ok but if i use this will not show right

Code:
public Help_CustomMenuHandler(Handle:menu, MenuAction:action, param1, param2) 
{
 if (action == MenuAction_End) 
 {
  CloseHandle(menu);
 } 
 else if (action == MenuAction_VoteEnd)
 {
 new String:itemval[32];
 new String:itemval1[32];
 GetMenuItem(menu, param2, itemval, sizeof(itemval));
 GetMenuItem(menu, param2, "", 0, _, itemval1, sizeof(itemval1));
 PrintToChatAll("\x04[%N] \x03 command:%s   type:%s",param1,itemval,itemval1);
 }
}
please help me thanks everyone.
lovemf is offline
lovemf
BANNED
Join Date: May 2009
Old 07-31-2009 , 07:40   Re: please help me about MenuAction_Select
Reply With Quote #2

upload all code,please help me thanks.
Attached Files
File Type: sp Get Plugin or Get Source (changemap.sp - 450 views - 9.2 KB)
File Type: txt newmap.txt (163 Bytes, 195 views)
lovemf is offline
lovemf
BANNED
Join Date: May 2009
Old 07-31-2009 , 08:27   Re: please help me about MenuAction_Select
Reply With Quote #3

i found

Code:
 if (action == MenuAction_VoteEnd)
can get 'param2' forever.

i do this

Code:
public Help_CustomMenuHandler(Handle:menu, MenuAction:action, param1, param2) 
{
 // MapMenuHandler(menu, MenuAction_Select, 0, param1);
 
 if (action == MenuAction_End) 
 {
  CloseHandle(menu);
 } 
 else if (action == MenuAction_Select) {
 new String:itemval[256];
 new String:typetext[256];
 decl String:display[256];
 GetMenuItem(menu, param2, itemval, sizeof(itemval), _, display, sizeof(display));
 GetMenuItem(menu, param2, "", 0, _, typetext, sizeof(typetext));
 PrintToChatAll("\x04[%N] \x03 command:%s   typetext:%s",param1,itemval,typetext);
 
 // MapMenuHandler(menu, MenuAction_Select, 0, param1);
 }
 else if (action == MenuAction_VoteEnd)
 {
 
 new String:itemval[256];
 new String:typetext[256];
 decl String:display[256];
 GetMenuItem(menu, param2, itemval, sizeof(itemval), _, display, sizeof(display));
 GetMenuItem(menu, param2, "", 0, _, typetext, sizeof(typetext));
 PrintToChatAll("\x04[%N] \x03 command:%s   typetext:%s",param1,itemval,typetext);
 
 MapMenuHandler(menu, MenuAction_Select, 0, param1);
 new Handle:dp;
 CreateDataTimer(5.0, Timer_run, dp);
 WritePackString(dp, itemval); 
 
 }
}
public MapMenuHandler(Handle:menu, MenuAction:action, client, itemNum)
{
PrintToChatAll("\x04[%i",itemNum);
}
this value is "1" forever.

Last edited by lovemf; 07-31-2009 at 08:34.
lovemf is offline
lovemf
BANNED
Join Date: May 2009
Old 08-01-2009 , 01:27   Re: please help me about MenuAction_Select
Reply With Quote #4

who can help me please.
lovemf is offline
lovemf
BANNED
Join Date: May 2009
Old 08-03-2009 , 03:52   Re: please help me about MenuAction_Select
Reply With Quote #5

lol help me please..
lovemf is offline
lovemf
BANNED
Join Date: May 2009
Old 08-11-2009 , 04:06   Re: please help me about MenuAction_Select
Reply With Quote #6

pls help me thanks everyone sorry my bad english.
lovemf is offline
Darkimmortal
Senior Member
Join Date: Aug 2008
Old 08-11-2009 , 10:27   Re: please help me about MenuAction_Select
Reply With Quote #7

Lol 6 posts in a row
__________________
Darkimmortal 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 23:37.


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