Sscanf
#4

Код:
new Option2[10];
if(strcmp(Option, "joinrank", true) == 0)
        {
            if(sscanf(Option2, "i", RankID))
            {
                if(PlayerInfo[playerid][pRank] >= 2)
                {
                    SendClientMessage(playerid, COLOR_RED, "You're not high enough to set joinrank.");
                    return 1;
                }
                    DynamicFactions[faction][fJoinRank] = RankID;
                    format(string, sizeof(string), "[FACTION] Join rank is now set too %s.", RankID);
                    SendFactionMessage(faction, COLOR_LIGHTRED, string);
                    return 1;
            }
        }
Reply


Messages In This Thread
Sscanf - by EliteApple - 31.01.2014, 00:34
Re: Sscanf - by MP2 - 31.01.2014, 02:00
Re: Sscanf - by DaniceMcHarley - 31.01.2014, 05:31
Re: Sscanf - by SickAttack - 31.01.2014, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)