27.04.2012, 02:43
Try:
Quanto ao carro, tente declarar IDC como uma variбvel global...
Ex:
@edit
Desculpe Vini, postamos no mesmo momento...
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 ) ;
Desculpe Vini, postamos no mesmo momento...