[POMOC]Tune car


Započeo X_samper, Novembar 02, 2014, 16:52:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:NC:RP
Detaljan opis problema:Sve fino postavio nema errora
Dio skripte: http://pastebin.com/eRtuGa5q
Neke slike/video za lakse dobivanje pomoci(neobavezno):



probaj ovo izmijeniti, stavi ovako: new VehicleID = GetPlayerVehicleID(playerid);


YCMD:tunecar(playerid, params[], help)
{
	 if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pVip] >= 1 || PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pPromoter] >= 1)
	 {
		if(IsPlayerInVehicle(playerid, 562)||IsPlayerInVehicle(playerid, 579)||IsPlayerInVehicle(playerid, 411)||IsPlayerInVehicle(playerid, 415)||IsPlayerInVehicle(playerid, 451)||IsPlayerInVehicle(playerid, 431)||IsPlayerInVehicle(playerid, 535)||IsPlayerInVehicle(playerid, 506)||IsPlayerInVehicle(playerid, 541)||IsPlayerInVehicle(playerid, 559)||IsPlayerInVehicle(playerid, 560))
		{
			if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
			{
				new VehicleID = GetPlayerVehicleID(playerid);
	            AddVehicleComponent(VehicleID,1010);
	            AddVehicleComponent(VehicleID,1001);
	            AddVehicleComponent(VehicleID,1079);
	            AddVehicleComponent(VehicleID,1012);
	            AddVehicleComponent(VehicleID,1028);
	            AddVehicleComponent(VehicleID,1138);
	            AddVehicleComponent(VehicleID,1068);
	            AddVehicleComponent(VehicleID,1057);
	            AddVehicleComponent(VehicleID,1171);
	            AddVehicleComponent(VehicleID,1167);
			}
			else
			{
				SendClientMessage(playerid,0xFF6347AA,"Moras biti vozac vozila !"); return 1;
			}
			// ModCar(playerid); (Nisam siguran za sto ti je ovaj callback)
		}
    }
    return 1;
}


To je ono što sam ja uspio da shvatim gdje su ti greške, samo mi nije jasan ovaj callback ModCar(playerid); ti ga aktiviraj ako ti je potreban odnosno samo izbriši ovo " // " ispred toga. Nadam se da sam ti pomogao.