[Ajuda] Veнculo sempre desligado.. e.e
#5

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
PHP код:
if(isVehiclePowerOFF(vehicleid)){
    
SendClientMessage(playerid,-1"[MOTOR] Digite /motor para ligar o seu veнculo!" );  
    return 
false;

PHP код:
isVehiclePowerOFF(vehicleid){
    new  
enginelightsalarmdoorsbonnetbootobjective;
    
GetVehicleParamsEx(vehicleidenginelightsalarmdoorsbonnetbootobjective);
    
    
#pragma unused lights, alarm, doors, bonnet, boot, objective
    
return engine;

#Nao testado.
Teria que inverter o valor que seria retornado pela funзгo isVehiclePowerOFF nй Garfield:

PHP код:
return !(engine); 
Reply


Messages In This Thread
Veнculo sempre desligado.. e.e - by duuuwh - 24.10.2012, 02:43
Re: Veнculo sempre desligado.. e.e - by ForT - 24.10.2012, 02:50
Re: Veнculo sempre desligado.. e.e - by duuuwh - 24.10.2012, 03:02
Re: Veнculo sempre desligado.. e.e - by zSuYaNw - 24.10.2012, 03:46
Re: Veнculo sempre desligado.. e.e - by paulor - 24.10.2012, 12:45
Re: Veнculo sempre desligado.. e.e - by duuuwh - 24.10.2012, 15:22

Forum Jump:


Users browsing this thread: 1 Guest(s)