[Tutorial] Beautiful, Readable Code (Indentation, Whitespace, Comments)
#6

Hmm..so for example if i need to check many things i do something like this;

pawn Код:
if(IsPlayerInRangeOfPoint(blablabla))
{
    if(GetPlayerState(playerid)== blabllablala)
    {
        if(GetPlayerWeaponSkill bla bla blaaah
        {
             if(blaaaaaaa )
             {
             (and so on)
             }
             else
             {
             blablabla
             }
        }
    }
}
Is it bad to have so many if's ? i try to narrow it down but mostly im not sure what is best
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)