Jump to content
  • 0

Problema pickup


ibacka

Question

Problema intalnita (descriere): Am facut niste pickup-uri si atunci cand intri in ele sa iti repare masina, dar intru cu masina in el, si nimic. Ce sa fac?
Ero(area / rile) / warning-(ul / urile): Nu am erori
Liniile de cod / sursa / script-ul(obligatoriu):

 if(pickupid == masina1)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new masina = GetPlayerVehicleID(playerid);
            SetVehicleHealth(masina, 1000);
            SendClientMessage(playerid, COLOR_WHITE, "Masina ta a fost reparata.");
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "Nu esti intr-o masina.");
        }
    }


Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da, nu reusesc.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
if(pickupid == masina1)
{
	if(!IsPlayerInAnyVehicle(playerid))
			return SendClientMessage(playerid, -1, "Nu esti in masina!");

	new masina = GetPlayerVehicleID(playerid);

	SetVehicleHealth(masina, 1000);

	SendClientMessage(playerid, -1, "Masina ta a fost reparata.");
}

Vezi asa .

Edited by NoNamed
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.