16.02.2009, 16:20
I've got this on a script , and i don't know why he use more than return 1 +
Why he use return 2 , 3 , 4, 5, 6, 7, 8 !?
It's not the same difference ?
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;
}
It's not the same difference ?