[Ajuda] 2 Comandos
#7

Try:

pawn Код:
DonSpeed:admins ( playerid , params [ ] ) {
    new
        _infostr [ 70 ] ,
        _strcat [ 250 ] ,
        _adminlevel [ 30 ] ,
        _name [ MAX_PLAYER_NAME ]
    ;
    for ( new i ; i != GetMaxPlayers ( ) ; ++i ) {
        if ( !IsPlayerConnected ( i ) || Jogador [ i ] [ pAdmin ] < 1 )
            continue ;

        GetPlayerName ( i , _name , sizeof _name ) ;
        switch ( Jogador [ i ] [ pAdmin ] ) {
            case 5: _adminlevel = "Fundador/Script" ;
            default: format ( _adminlevel , sizeof _adminlevel , "Administrador Level %i" , Jogador [ i ] [ pAdmin ] ) ;
        }
       
        format ( _infostr , sizeof _infostr , " %s %s\n" , _name , _adminlevel ) ;
        strcat ( _strcat , _infostr ) ;
    }
    ShowPlayerDialog ( playerid, DialogADM , 0 , "Administradores" , _strcat , "Fechar" , "" ) ;
    return 1 ;
}

Quanto ao carro, tente declarar IDC como uma variбvel global...

Ex:

pawn Код:
//Topo
new IDC ;

//Comando de criar
IDC = CreateVehicle ( ... ) ;

//Comando de destruir
DestroyVehicle ( IDC ) ;
@edit

Desculpe Vini, postamos no mesmo momento...
Reply


Messages In This Thread
[Ajuda] 2 Comandos - by Don_Speed - 27.04.2012, 02:17
Re: [Ajuda] 2 Comandos - by Lucas_Alemao - 27.04.2012, 02:21
Re: [Ajuda] 2 Comandos - by zbt - 27.04.2012, 02:23
Re: [Ajuda] 2 Comandos - by Don_Speed - 27.04.2012, 02:39
Re: [Ajuda] 2 Comandos - by zbt - 27.04.2012, 02:41
Re: [Ajuda] 2 Comandos - by ViniBorn - 27.04.2012, 02:43
Re: [Ajuda] 2 Comandos - by Jason` - 27.04.2012, 02:43
Re: [Ajuda] 2 Comandos - by Don_Speed - 27.04.2012, 02:48
Re: [Ajuda] 2 Comandos - by Jason` - 27.04.2012, 02:51
Re: [Ajuda] 2 Comandos - by zbt - 27.04.2012, 02:55

Forum Jump:


Users browsing this thread: 7 Guest(s)