[Ajuda] Sscanf
#4

nao precisa do else pra nada

pawn Код:
CMD:veiculo(playerid, params[])
{
    new info[128];
    if(sscanf(params, "s[128]", info))
    {
        SendClientMessage(playerid, 0xFFFF00AA, "USE: /veiculo comprar/vender/mensagem");
    }
    if(strcmp(info, "comprar", true) == 0)
    {
        //
    }
    if(strcmp(info, "vender", true) == 0)
    {
        //
    }
    if(strcmp(info, "mensagem", true) == 0)
    {
        new mensagem[128];
        if(sscanf(params, "s[128]", mensagem)) return SendClientMessage(playerid, 0xFFFF00AA, "USE: /veiculo mensagem [mensagem]");
        //
    }
}
Reply


Messages In This Thread
Sscanf - by Smith. - 03.09.2013, 08:54
Re: Sscanf - by bruxo00 - 03.09.2013, 09:44
AW: Sscanf - by Smith. - 03.09.2013, 09:51
Re: Sscanf - by PT - 03.09.2013, 13:14
AW: Sscanf - by Smith. - 03.09.2013, 18:05
Re: AW: Sscanf - by Samuel300 - 03.09.2013, 18:23
AW: Sscanf - by Smith. - 03.09.2013, 18:29
Re: AW: Sscanf - by Samuel300 - 03.09.2013, 18:36
AW: Re: AW: Sscanf - by Smith. - 03.09.2013, 18:44
Re: AW: Re: AW: Sscanf - by Samuel300 - 03.09.2013, 18:59

Forum Jump:


Users browsing this thread: 1 Guest(s)