SA-MP Forums Archive
ZCMD Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ZCMD Help (/showthread.php?tid=498721)



ZCMD Help - EliteApple - 04.03.2014

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;
            }
        }