[Ajuda] com SSCANF!
#6

Eu modifiquei essa linha:
pawn Код:
if(sscanf(params, "s", Fun))
Funcionou?
@Edit
Tente:
pawn Код:
YCMD:vender(playerid, params[], pHELPS) // TERMINAR
{
    new Fun[15];

    if(sscanf(params, "s[12]", Fun))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "USE: /vender [droga/medicamento/arma]");
        return 1;
    }
    if(strcmp(Fun, "droga",true))
    {
        new qntd, price;

        if(sscanf(params, "dd", qntd, price))
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "USE: /vender droga [quantidade] [preзo]");
            return 1;
        }
        return 1;
    }
    if(strcmp(Fun, "medicamento",true))
    {
        new qntd, price;

        if(sscanf(params, "dd", qntd, price))
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "USE: /vender medicamento [quantidade] [preзo]");
            return 1;
        }
        return 1;
    }
    if(strcmp(Fun, "arma",true))
    {
        new nome[15], price;

        if(sscanf(params, "s[15]d", nome, price))
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "USE: /vender arma [nome] [preзo]");
            return 1;
        }
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
com SSCANF! - by SuperChock - 13.06.2014, 17:13
Respuesta: Ajuda com SSCANF! - by merloch - 13.06.2014, 18:45
Re: Ajuda com SSCANF! - by SuperChock - 13.06.2014, 18:48
Re: com SSCANF! - by MultiKill - 13.06.2014, 22:36
Re: com SSCANF! - by SuperChock - 14.06.2014, 00:01
Re: com SSCANF! - by MultiKill - 14.06.2014, 00:03
Re: com SSCANF! - by SuperChock - 14.06.2014, 00:20
Re: com SSCANF! - by SuperChock - 14.06.2014, 20:37
Re: com SSCANF! - by Dolby - 14.06.2014, 20:47
Re: com SSCANF! - by SuperChock - 15.06.2014, 00:36

Forum Jump:


Users browsing this thread: 2 Guest(s)