Switch
#2

Код:
new var = random( 5 );
switch( var )
{
	case 0:
	{
		print( "Random returned 0 !" );
	}
	case 1:
	{
		print( "Random returned 1 !" );
	}
	case 2:
	{
		print( "Random returned 2 !" );
	}
	case 3:
	{
		print( "Random returned 3 !" );
	}
	case 4:
	{
		print( "Random returned 4 !" );
	}
}
Reply


Messages In This Thread
Switch - by Syntax - 09.04.2013, 11:42
Re: Switch - by IstuntmanI - 09.04.2013, 11:45
Re: Switch - by [XST]O_x - 09.04.2013, 11:46
Re: Switch - by Riddick94 - 09.04.2013, 12:13
Re: Switch - by Syntax - 09.04.2013, 16:19
Re: Switch - by Scenario - 09.04.2013, 16:22
Re: Switch - by Riddick94 - 09.04.2013, 16:22
Re: Switch - by Syntax - 09.04.2013, 16:25
Re: Switch - by RicaNiel - 09.04.2013, 16:27
Re: Switch - by Scenario - 09.04.2013, 17:19
Re: Switch - by Isolated - 09.04.2013, 17:21
Re: Switch - by Syntax - 09.04.2013, 19:17
Re: Switch - by Syntax - 10.04.2013, 09:13
Re: Switch - by Scenario - 10.04.2013, 14:52
Re: Switch - by SchurmanCQC - 10.04.2013, 14:56
Re: Switch - by Syntax - 10.04.2013, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)