Raised This Month: $ Target: $400
 0% 

HELP Detecting a way progress


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Toallin
Junior Member
Join Date: Jun 2014
Old 06-25-2014 , 22:15   HELP Detecting a way progress
Reply With Quote #1

Good.
What happens is that I have a menu lr.
is that the TT has a list of ways and can choose knife or so scouts.
after picking somehow he opens another menu with a list of names of all CT.
By choosing one CT, the CT and TT 2 players enter a mode selected.

For example:
PHP Code:
new g_modes

g_modes 
MODE_KNIFE 
someone could help to identify the mode is in progress after choosing who enters the CT mode.

PHP Code:
enum {
        
MODE_NONE 0,
        
MODE_KNIFE,
        
MODE_SCOUTS

when activated somehow identify the mode chosen after having chosen CT who enters the mode.

who can help me thank you very much.
Toallin is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 06-26-2014 , 08:04   Re: HELP Detecting a way progress
Reply With Quote #2

give full code or don't ask for help
or at least the code that handles the duel
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-26-2014 , 15:52   Re: HELP Detecting a way progress
Reply With Quote #3

just check what 'g_modes' holds as its value.

PHP Code:
switch(g_mode)
{
    case 
MODE_KNIFE:
    {
        
// do that blaaaaaa
    
}
    case 
MODE_XYZ:
    {
       
// do whatever
    
}

But if I'm honest I didn't reeeeally get what you want.

Last edited by mottzi; 06-26-2014 at 15:53.
mottzi is offline
Send a message via MSN to mottzi
Toallin
Junior Member
Join Date: Jun 2014
Old 06-26-2014 , 16:06   Re: HELP Detecting a way progress
Reply With Quote #4

Thanks Motzzi she sought, detect how he had chosen to turn.

By the way I also help me activate the profile only to the variable you have

PHP Code:
new bool:g_modeactive[33
in true
Toallin is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-26-2014 , 16:13   Re: HELP Detecting a way progress
Reply With Quote #5

Im sorry, I don't understand what you wrote.
mottzi is offline
Send a message via MSN to mottzi
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-26-2014 , 17:47   Re: HELP Detecting a way progress
Reply With Quote #6

You should remove the "bool:" and use it with the enum again like a normal variable. Otherwise it could not handle more than two options - "true" and "false".
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Reply


Thread Tools
Display Modes

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 21:10.


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