[Tutorial] Usar ZCMD com SSCANF
#9

Vocк realmente nгo precisa usar sscanf com um ъnico params ..

pawn Код:
cmd(dance,iPlayer,params[])
{
    //if(sscanf(params, "d", id))
    if(isnull(params))
             return SendClientMessage(iPlayer, AMARELO, "Use: /dance <id>");
    new id = strval(params);

        if(id < 1 || id > 4)
        return SendClientMessage(iPlayer, VERMELHO, "[ERRO] Estilos sгo vбlidos apenas [1~4]");

    if(id == 1)
           SetPlayerSpecialAction(iPlayer,5);
        if(id == 2)
              SetPlayerSpecialAction(iPlayer,6);    
    if(id == 3)
        SetPlayerSpecialAction(iPlayer,7);
    if(id == 4)
        SetPlayerSpecialAction(iPlayer,8);
    return true;
}
Mas boa sorte com tutoriais futuro: p
(Diga-me se o ****** Translator nгo: pp)
Reply


Messages In This Thread
Usar ZCMD com SSCANF - by ipsBruno - 30.12.2010, 17:52
Re: Usar ZCMD com SSCANF - by Trinix_PoS [Bizu] - 30.12.2010, 17:56
Re: Usar ZCMD com SSCANF - by zSuYaNw - 30.12.2010, 18:14
Re: Usar ZCMD com SSCANF - by [Banido]HigorOliver - 30.12.2010, 18:17
Re: Usar ZCMD com SSCANF - by DeNeR - 30.12.2010, 18:21
Re: Usar ZCMD com SSCANF - by [Ips]Guh - 30.12.2010, 18:21
Re: Usar ZCMD com SSCANF - by [Banido]HigorOliver - 30.12.2010, 18:29
Respuesta: Usar ZCMD com SSCANF - by ipsBruno - 30.12.2010, 18:32
Re: Usar ZCMD com SSCANF - by [L3th4l] - 30.12.2010, 19:30
Respuesta: Usar ZCMD com SSCANF - by ipsBruno - 30.12.2010, 19:38

Forum Jump:


Users browsing this thread: 2 Guest(s)