strcmp issue
#1

So I am making a /set command for my server, but I get an error on line 898

pawn Код:
if(strcmp(cmd, "/set", true) == 0)
    {
        new string[128];
        if(sscanf(params, "udz", id, Option, Value))
        {
            if(PlayerInfo[playerid][pAdmin] >= 3)
            {
                SendClientMessage(playerid, -1, "SYNTAX: /set [Playerid] [Option] [Value]");
                SendClientMessage(playerid, -1, "OPTIONS: Army, Origin, Interior, Skin, ArmyRank, Money, Age");
                SendClientMessage(playerid, -1, "OPTIONS: Armor, Cirtual WorldPlayinghours, Score, Experience");
            }
        }
        else
        {
            if(PlayerInfo[playerid][pAdmin] >=3)
            {
                if(strcmp(Option, "army", true) == 0) //this is Line 898
                {
                    format(string, sizeof(string), "You have set %s's Army to %d.", GetName(id), Value);
                    SendClientMessage(playerid, -1, string);
                    SavePlayerDat(id);
                    PlayerInfo[id][pArmy] = Value;
                    PlayerInfo[id][pArmyRank] = 1;
                }
            }
        }
    }
Any help would be appreciated and I will +Rep.
Reply


Messages In This Thread
strcmp issue - by nmader - 01.05.2012, 21:21
Re: strcmp issue - by 2KY - 01.05.2012, 21:23
Re: strcmp issue - by nmader - 01.05.2012, 21:26
Re: strcmp issue - by FalconX - 01.05.2012, 21:27
Re: strcmp issue - by Ash. - 01.05.2012, 21:30
Re: strcmp issue - by 2KY - 01.05.2012, 21:32
Re: strcmp issue - by Biesmen - 01.05.2012, 21:37
Re: strcmp issue - by FalconX - 01.05.2012, 21:52

Forum Jump:


Users browsing this thread: 2 Guest(s)