23.09.2014, 11:18
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;
}