[Pedido] zcmd + sscanf
#2

assim?

pawn Код:
COMMAND:menu ( playerid, params[] ) {

    if ( isnull ( params ) )
        return SendClientMessage ( playerid, -1, "[ USE ]: /menu ( drogas )" ) ;
       
    if ( strcmp ( params, "drogas", true ) == 0 ) {

        ShowPlayerDialog ( playerid, 1000, DIALOG_STYLE_MSGBOX, "Menu Drogas", "Menu de Drogas OEWIEOWIE", "Continuar", "Sair" ) ;
    }
    return 1 ;
}
ou

pawn Код:
COMMAND:menu ( playerid, params[] ) {

    new
        MyMenu [ 10 ] ;
       
    if ( sscanf ( params, "u[10]", MyMenu ) )
        return SendClientMessage ( playerid, -1, "[ USE ]: /menu ( drogas )" ) ;
       
    if ( strcmp ( MyMenu, "drogas", true ) == 0 ) {
   
        ShowPlayerDialog ( playerid, 1000, DIALOG_STYLE_MSGBOX, "Menu Drogas", "Menu de Drogas OEWIEOWIE", "Continuar", "Sair" ) ;
    }
    return 1 ;
}
Reply


Messages In This Thread
zcmd + sscanf - by Coe1 - 06.07.2013, 22:33
Re: zcmd + sscanf - by smiiir - 06.07.2013, 22:39
Re: zcmd + sscanf - by Coe1 - 06.07.2013, 22:41
Re: zcmd + sscanf - by smiiir - 06.07.2013, 22:43
Re: zcmd + sscanf - by Coe1 - 06.07.2013, 22:45

Forum Jump:


Users browsing this thread: 1 Guest(s)