Which is better?
#1

pawn Код:
CMD:heal(playerid, params[])
{
    if(InDM[playerid] == 1) return SCM(playerid, -1, "You cannot heal yourself in DM Arena");
    SetPlayerHealth(playerid, 100);
    return 1;
}

CMD:heal(playerid, params[])
{
    if(InDM[playerid] == 0)
    {
        SetPlayerHealth(playerid, 100);
    }
    else
    {
        SCM(playerid, -1, "You cannot heal yourself in DM Arena");
    }
}
which type of code is better among the above two^ ^
Reply


Messages In This Thread
Which is better? - by PMH - 26.08.2014, 11:28
Re: Which is better? - by JeevanJyothish - 26.08.2014, 11:41
Re: Which is better? - by Team_PRO - 26.08.2014, 11:51
Re: Which is better? - by Battlezone - 26.08.2014, 12:10
Re: Which is better? - by PreetZ - 26.08.2014, 12:47

Forum Jump:


Users browsing this thread: 5 Guest(s)