changing if else to switch(...) case
#3

Quote:
Originally Posted by Humza
Посмотреть сообщение
Код:
		switch(pInfo[playerid][Adminlevel])
		{
			case 0:
	                {
	                    GameTextForPlayer(playerid,"~b~Welcome!~w~ Logged in!) ",3000,3);
	                }
			case 1:
	                {
	                    GameTextForPlayer(playerid,"~b~Welcome!~w~ Logged in~n~ Adminlevel 1 ~g~~n~(Trial moderator) ",3000,3);
	                }
	                case 2:
	                {
	                    GameTextForPlayer(playerid,"~b~Welcome!~w~ Logged in~n~ Adminlevel 2 ~g~~n~(Moderator) ",3000,3);
	                }
	                case 3:
	                {
	                    GameTextForPlayer(playerid,"~b~Welcome!~w~ Logged in~n~ Adminlevel 3 ~g~~n~(Junior Administrator) ",3000,3);
	                }
	                case 4:
	                {
	                    GameTextForPlayer(playerid,"~b~Welcome!~w~ Logged in~n~ Adminlevel 4 ~g~~n~(Senior Administrator) ",3000,3);
	                }
	                case 5:
	                {
	                    GameTextForPlayer(playerid,"~b~Welcome!~w~ Logged in~n~ Adminlevel 5 ~g~~n~(Master Administrator) ",3000,3);
	                }
	                case 6:
	                {
	                    GameTextForPlayer(playerid,"~b~Welcome!~w~ Logged in~n~ Adminlevel 6 ~g~~n~(Server Owner) ",3000,3);
	                }
		}
You mean this?
yeah thanks
Reply


Messages In This Thread
changing if else to switch(...) case - by xTURBOx - 03.11.2015, 11:54
Re: changing if else to switch(...) case - by HydraHumza - 03.11.2015, 12:03
Re: changing if else to switch(...) case - by xTURBOx - 03.11.2015, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)