23.09.2014, 11:08
Hello.
This is code
I have 12 LSPD ranks and 6 ranks of each faction.
And I am getting this error
This is code
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;
}
I have 12 LSPD ranks and 6 ranks of each faction.
And I am getting this error
pawn Код:
C:\Users\Hassan\Desktop\Pictures of Server\Equality_Roleplayr\gamemodes\EQRP.pwn(5124) : error 001: expected token: "-identifier-", but found "="
C:\Users\Hassan\Desktop\Pictures of Server\Equality_Roleplayr\gamemodes\EQRP.pwn(5125) : error 029: invalid expression, assumed zero
C:\Users\Hassan\Desktop\Pictures of Server\Equality_Roleplayr\gamemodes\EQRP.pwn(5125) : error 029: invalid expression, assumed zero
C:\Users\Hassan\Desktop\Pictures of Server\Equality_Roleplayr\gamemodes/EQRP.pwn(5125) : warning 215: expression has no effect
C:\Users\Hassan\Desktop\Pictures of Server\Equality_Roleplayr\gamemodes\EQRP.pwn(5125) : error 001: expected token: ";", but found ")"
C:\Users\Hassan\Desktop\Pictures of Server\Equality_Roleplayr\gamemodes\EQRP.pwn(5125) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.