A small problem with sscanf
#2

change
pawn Код:
if(sscanf(params, "is[64]s[64]D", family, x_job, x_hq))
        {
            SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /facedit [faction id] [name] [amount]");
            SendClientMessageEx(playerid, COLOR_GREY, "Available names: Leader,Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7");
            SendClientMessageEx(playerid, COLOR_GREY, "For detailed editing (changing rank names,etc.) use /editfaction");
            SendClientMessageEx(playerid, COLOR_GREY, "This command is used for setting skins/leader name only!");
            return 1;
        }
to:
pawn Код:
if(sscanf(params, "ds[64]d", family, x_job, x_hq))
        {
            SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /facedit [faction id] [name] [amount]");
            SendClientMessageEx(playerid, COLOR_GREY, "Available names: Leader,Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7");
            SendClientMessageEx(playerid, COLOR_GREY, "For detailed editing (changing rank names,etc.) use /editfaction");
            SendClientMessageEx(playerid, COLOR_GREY, "This command is used for setting skins/leader name only!");
            return 1;
        }
+rep if i helped
Reply


Messages In This Thread
A small problem with sscanf - by jonas_life - 28.02.2015, 16:13
Re : A small problem with sscanf - by simo0000 - 28.02.2015, 16:20
Re: A small problem with sscanf - by jonas_life - 28.02.2015, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)