What's the difference?
#1

I've got this on a script , and i don't know why he use more than return 1 +

pawn Код:
public HouseLevel(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new h = PlayerInfo[playerid][pPhousekey];
        if(h == 500)
        {
            return 0;
        }
        if(h <= 4)
        {
            return 1;
        }
        if(h >= 5 && h <= 9)
        {
            return 2;
        }
        if(h >= 10 && h <= 18)
        {
            return 3;
        }
        if(h >= 19 && h <= 22)
        {
            return 4;
        }
        if(h >= 23 && h <= 25)
        {
            return 5;
        }
        if(h == 26)
        {
            return 6;
        }
        if(h == 27)
        {
            return 7;
        }
        if(h >= 28 && h <= 31)
        {
            return 7;
        }
        if(h >= 32 && h <= 67)
        {
            return 8;
        }
    }
    return 0;
}
Why he use return 2 , 3 , 4, 5, 6, 7, 8 !?
It's not the same difference ?
Reply


Messages In This Thread
What's the difference? - by Danut - 16.02.2009, 16:20
Re: What's the difference? - by MenaceX^ - 16.02.2009, 16:24
Re: What's the difference? - by Danut - 16.02.2009, 16:25
Re: What's the difference? - by [LDT]LuxurY - 16.02.2009, 17:02
Re: What's the difference? - by Think - 16.02.2009, 18:27
Re: What's the difference? - by Joe Staff - 16.02.2009, 20:28
Re: What's the difference? - by Daren_Jacobson - 16.02.2009, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)