Raised This Month: $ Target: $400
 0% 

Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-24-2013 , 12:19   Menu
Reply With Quote #1

When i Choose 0 it only starts 0.
But when i start 1 it starts 0 and 1
Why?

Code:
Code:
public TeamMenu( id )
{ 
 new szText[ 555 char ]
 formatex( szText, charsmax( szText ), "Team Menu")
 new menu = menu_create( szText, "TeamMenu_Handler" )
 
 menu_additem( menu, "\rT VS T", "0", 0 )
 
 menu_additem( menu, "\rCT VS T", "1", 0 )
 
 menu_setprop( menu, MPROP_EXIT, MEXIT_ALL )
 menu_display( id, menu, 0 )
}
public TeamMenu_Handler( id, menu, item )
{
 if( item == MENU_EXIT )
 {
  menu_destroy( menu )
  return PLUGIN_HANDLED
 }
 new data[ 6 ], iName[ 64 ], access, callback
 menu_item_getinfo( menu, item, access, data, charsmax( data ), iName, charsmax( iName ), callback )
 
 Team = str_to_num( data ) 
 
 set_task( 0.1,"StartGames", Team );
 
 return PLUGIN_HANDLED
}
public StartGames( )
{
 if( 1 <= Team ) 
 { 
  ColorChat(id, GREY, "Started 1", Team)
 }
 
 if( 0 <= Team ) 
 { 
  ColorChat(id, GREY, "Started 0", Team)
 }
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
 



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 16:27.


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