error Loose indentation
#6

Of course it is, again indentation, look at the code.. isn't it weird?..

I mean, compare this (your code);
Код:
switch( KillStreak[ killerid ] ) // loose indentation
              {
            case 1:
            {
            format(str, sizeof(str), "~r~ %s is on a kill!", PlayerName);
            GameTextForAll(str,4000,4);
            }
            case 2:
            {
            format(str, sizeof(str), "~r~ %s is on a ~b~double kill!", PlayerName);
            GameTextForAll(str,4000,4);
            }
            case 3:
            {
            format(str, sizeof(str), "~y~%s is on a ~r~killing spree!", PlayerName);
            GameTextForAll(str,4000,4);
            }
            case 4:
            {
            format(str, sizeof(str), "~g~%s is on a ~b~mmmmmonster kill!", PlayerName);
            GameTextForAll(str,4000,4);
            }
            case 5:
            {
            format(str, sizeof(str), "~r~%s is ~p~dominating!", PlayerName);
            GameTextForAll(str,4000,4);
            }
            case 6:
            {
            format(str, sizeof(str), "~p~%s is ~y~unstopable!", PlayerName);
            GameTextForAll(str,4000,4);
            }/*
            case 7: //You can do this as many times as you like
            {
                format(str,sizeof(str),"%s is annihilating!",Killername);
                GameTextForAll(str,4000,4);
            }
            case 8:
            {
                format(str,sizeof(str),"%s is GodLike!",Killername);
                GameTextForAll(str,4000,4);
            }*/
       }
}
with my code (won't give errors);
Код:
switch(KillStreak[killerid])
{
    case 1:
    {
        format(str, sizeof(str), "~r~ %s is on a kill!", PlayerName);
        GameTextForAll(str,4000,4);
    }
    case 2:
    {
        format(str, sizeof(str), "~r~ %s is on a ~b~double kill!", PlayerName);
        GameTextForAll(str,4000,4);
    }
    case 3:
    {
        format(str, sizeof(str), "~y~%s is on a ~r~killing spree!", PlayerName);
        GameTextForAll(str,4000,4);
    }
    case 4:
    {
        format(str, sizeof(str), "~g~%s is on a ~b~mmmmmonster kill!", PlayerName);
        GameTextForAll(str,4000,4);
    }
    case 5:
    {
        format(str, sizeof(str), "~r~%s is ~p~dominating!", PlayerName);
        GameTextForAll(str,4000,4);
    }
    case 6:
    {
	format(str, sizeof(str), "~p~%s is ~y~unstopable!", PlayerName);
        GameTextForAll(str,4000,4);
    }
}
Show me the code above also, I can't see shit from that what you posted.
Reply


Messages In This Thread
error Loose indentation - by Eymeric69 - 30.05.2016, 15:37
Re: error Loose indentation - by cuzido - 30.05.2016, 15:41
Re: error Loose indentation - by justice96 - 30.05.2016, 15:42
Re: error Loose indentation - by iKevin - 30.05.2016, 15:44
Re: error Loose indentation - by Eymeric69 - 30.05.2016, 15:49
Re: error Loose indentation - by iKevin - 30.05.2016, 15:56
Re: error Loose indentation - by Eymeric69 - 30.05.2016, 15:58
Re: error Loose indentation - by justice96 - 30.05.2016, 15:58
Re: error Loose indentation - by Noris - 30.05.2016, 16:09
Re: error Loose indentation - by ilijap - 30.05.2016, 16:13

Forum Jump:


Users browsing this thread: 1 Guest(s)