Jump to content
  • 0

Engine Vehicle


MrAndrei

Question

Problema intalnita (descriere): Eroare Compilare
Ero(area / rile) / warning-(ul / urile): Am urmarit acest tutorial : https://www.sa-mp.ro/forums/topic/20836-tutorial-engine-vehicle/ , insa, cand dau sa se compileze imi apar urmatoarele erori.
Liniile de cod / sursa / script-ul(obligatoriu):

C:\Users\Andrei\Desktop\Gamemode R-G\WiDuAlK\gamemodes\WiD.pwn(269) : warning 217: loose indentation
C:\Users\Andrei\Desktop\Gamemode R-G\WiDuAlK\gamemodes\WiD.pwn(408) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

Linia 269 :

 

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if(EngineVehicle[vehicleid] == 0)// daca vehiculul este inchis, are valoarea EngineVehicle = 0

    {

        SendClientMessage(playerid,-1,"Scrie /engine sau apasa 2, pentru a porni vehiculul!");// ii da mesaj sa ii spuna ce trebuie sa faca.

    }
	return 1; // aici vine linia 269
}

 Linia 408

            SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);// il inchidem

            SendClientMessage(playerid,-1,"Ai inchis vehiculul!");// ii dam mesaj ca l-am inchis



            EngineVehicle[vehicleid] = 0;// ii stabilim valoarea 0(adica este inchis)

        }

    }
	return 1; // aici vine linia 408
}

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.