Баг sscanf
#2

не используй params[]

pawn Code:
if(strcmp("/test", cmdtext, true, 10) == 0)
    {
        new Name[30],
            Qty,
            Text[100];
        if(sscanf(params,"s[30]ds[100]",Name,Qty,Text)) return 1;
        if(Qty < 1) return SendClientMessage(playerid, -1, "Не меньше 1 дня");
        new string[160];
        format(string, sizeof(string), "%s %i %s",Name,Qty,Text);
        SendClientMessage(playerid, -1, string);
        return 1;
    }
Reply


Messages In This Thread
Баг sscanf - by Ayzek - 13.04.2015, 13:04
Re: Баг sscanf - by DeViLsS - 13.04.2015, 13:12

Forum Jump:


Users browsing this thread: 1 Guest(s)