Help in scripting
#2

Show error line? and try this one.
pawn Код:
stock GetPlayerFRank(playerid)
{
    new string[64];
    format(string, sizeof(string), "%s", "None");
    // if player is in a family, format family rank
    if(PlayerInfo[playerid][pFMember] != 255)
    {
        new fam = PlayerInfo[playerid][pFMember];
        new rank = PlayerInfo[playerid][pFRank];
        if(rank >= 1 && rank <= 6);
        {
            format(string, sizeof(string), "%s", FamilyRank[fam][rank-1]);
        }
        else
        {
            format(string, sizeof(string), "%s", FamilyRank[fam][0]);
        }
    }
    return string;
}
Reply


Messages In This Thread
Help in scripting - by Deathlock - 23.09.2014, 11:08
Re: Help in scripting - by Rudy_ - 23.09.2014, 11:18
Re: Help in scripting - by Deathlock - 23.09.2014, 13:03
Re: Help in scripting - by KillerStrike23 - 23.09.2014, 13:05
Re: Help in scripting - by Ghazal - 23.09.2014, 13:06
Re: Help in scripting - by KillerStrike23 - 23.09.2014, 13:09

Forum Jump:


Users browsing this thread: 1 Guest(s)