Sscanf
#1

pawn Код:
if(strcmp(Option, "joinrank", true) == 0)
        {
            if(sscanf(params, "n", 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 %s.", RankID);
                    SendFactionMessage(faction, COLOR_LIGHTRED, string);
                    DynamicFactions[faction][fJoinRank] = ID;
                    return 1;
            }
        }
I'm learning ZCMD/sscanf, and this part of the code is weird, it winds up setting the join rank to like 65538 or something. When I try setting it to 7, whats wrong?
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)