Raised This Month: $ Target: $400
 0% 

show_menu(id, 0, "^n", 1); Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-24-2011 , 22:24   show_menu(id, 0, "^n", 1); Help
Reply With Quote #1

PHP Code:
// For ALL
     
new iPlayers[32],iNum;
     
get_players(iPlayers,iNum,"ch")

for(new 
iiNumi++)
{
     
show_menu(iPlayers[i],0,"^n",1);

Or use (w/ out erros):

PHP Code:
      show_menu(0,0,"^n",1); 
Waths is better? or more simple ??
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 07-24-2011 at 22:25. Reason: Ops, Fail
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-24-2011 , 22:51   Re: show_menu(id, 0, "^n", 1); Help
Reply With Quote #2

Which one looks more simple to you? . Use the second.
__________________
fysiks is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-24-2011 , 23:54   Re: show_menu(id, 0, "^n", 1); Help
Reply With Quote #3

Thnk
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-25-2011 , 00:31   Re: show_menu(id, 0, "^n", 1); Help
Reply With Quote #4

You may also want to reset pdata 205 (m_iMenuCode).

Code:
#define XO_PLAYER 5
#define m_iMenuCode 205
#define cs_get_user_menu(%0)				get_pdata_int(%0, m_iMenuCode, XO_PLAYER)
#define cs_set_user_menu(%0,%1)				set_pdata_int(%0, m_iMenuCode, %1, XO_PLAYER)
Then, you need to loop.

PHP Code:
     show_menu(00" "1)
     
// For ALL
     
new iPlayers[32],iNum;
     
get_players(iPlayers,iNum,"ch")

     for(new 
iiNumi++)
     {
          
cs_set_user_menu(iPlayers[i],0);
     } 
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-25-2011 at 00:35.
ConnorMcLeod is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-25-2011 , 08:54   Re: show_menu(id, 0, "^n", 1); Help
Reply With Quote #5

Ok, i will be try this
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 01:04.


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