04.03.2014, 21:04
This code constantly returns 0, and I dont know why.
pawn Код:
if(CompareStrings(Option, "joinrank"))
{
if(sscanf(params, "i", RankID))
{
if(PlayerInfo[playerid][pRank] >= 2)
{
SendClientMessage(playerid, COLOR_RED, "You're not high enough to set joinrank.");
return 1;
}
format(string, sizeof(string), "[FACTION] Join rank is now set too %d.", RankID);
SendFactionMessage(faction, COLOR_LIGHTRED, string);
DynamicFactions[faction][fJoinRank] = RankID;
return 1;
}
}