01.05.2012, 21:21
So I am making a /set command for my server, but I get an error on line 898
Any help would be appreciated and I will +Rep.
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;
}
}
}
}