SA-MP Forums Archive
[Ajuda] SetVehicleHealth nao repara por completo, - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] SetVehicleHealth nao repara por completo, (/showthread.php?tid=632304)



SetVehicleHealth nao repara por completo, - felipegomez - 12.04.2017

kara tou usando
Код HTML:
if(dialogid==CARRO_MOD){
	 if(response){
	 switch(listitem){
	 case 0:{
	 
	 if(IsPlayerInAnyVehicle(playerid)&& GetPlayerMoney(playerid)>=300){
	 new Float:life=1000;
	 new v=GetPlayerVehicleID(playerid);
	 SetVehicleHealth(v,life);
	 
	 GivePlayerMoney(playerid,-300);
	 }else{
	 SendClientMessage(playerid,-1,"voce nao tem dinheiro suficiente");
	 
	 }
	 }
	 
	 
	 }
	 
	 
	 }
	 }
mas o carro nao repara totalmente so a metade, e assim mesmo? boa night


Re: SetVehicleHealth nao repara por completo, - SandroSF - 12.04.2017

use:

SetVehicleHealth(veiculo,1000);
RepairVehicle(veiculo);


Re: SetVehicleHealth nao repara por completo, - felipegomez - 12.04.2017

karai vey e dessas coisas q e dificil de lembrar dese repairveicle, vlw manu,


Re: SetVehicleHealth nao repara por completo, - SandroSF - 12.04.2017

Dnd qualque duvida pd perguntar, se eu souber eu ajudo