AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   HELP Detecting a way progress (https://forums.alliedmods.net/showthread.php?t=242854)

Toallin 06-25-2014 22:15

HELP Detecting a way progress
 
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.

aron9forever 06-26-2014 08:04

Re: HELP Detecting a way progress
 
give full code or don't ask for help
or at least the code that handles the duel

mottzi 06-26-2014 15:52

Re: HELP Detecting a way progress
 
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.

Toallin 06-26-2014 16:06

Re: HELP Detecting a way progress
 
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

mottzi 06-26-2014 16:13

Re: HELP Detecting a way progress
 
Im sorry, I don't understand what you wrote.

Flick3rR 06-26-2014 17:47

Re: HELP Detecting a way progress
 
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".


All times are GMT -4. The time now is 21:10.

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