[POMOC] Svijetla

Započeo Danisha, Decembar 08, 2012, 11:44:29 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:ravens preradjeni
Detaljan opis problema:e ovako imam u skripti svetjla i sada ja njih mogu upalit bilo kada ali nema ih na autu preko dana samo kada je noc i kada se uplai imaju a kada se preko dana upali pise da plaim svetla ali se nevidi a na drugim svrima samo vidjo kada uplais da i po danu svjetle
Dio skripte:
evo dio tih svetala
new veh = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
        {
            if(veh != INVALID_VEHICLE_ID)
{
new carid = GetPlayerVehicleID(playerid)
if(GetPlayerState(playerid) == 2 && !IsModelABycicle(carid))
{
new h,mi,s;
gettime(h,mi,s);
if(h >= 8 || h < 8)
{
if(LightsStatus[playerid] == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
LightsStatus[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SCM(playerid, 0xFFFFFFAA, "Svetla su {2F991A}upaljena!");
if(IsABike(carid))
{
format(string, sizeof(string), "%s pali svetla na svom motoru.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
format(string, sizeof(string), "%s pali svetla na svom automobilu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}

}
else if(LightsStatus[playerid] == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
LightsStatus[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
SCM(playerid, 0xFFFFFFAA, "Svetla su {E31919}ugasena!");
if(IsABike(carid))
{
format(string, sizeof(string), "%s gasi svetla na svom motoru.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
format(string, sizeof(string), "%s gasi svetla na svom automobilu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): ////

Svetla se vide i po danu, nego preko dana je sunce, i onda se poklapaju boje svetla i boje sunca ili neba xD, tako da se vide preko noci, zato sto se tada njihove boje ne kose


Pa brate pazi, ja sam pregledao ovo tvoje, i nema nikakvih smetnji, jedino se tako desi nekad da se svetla ubaguju( nije to do tebe! ) , tako da ti preporucujem da ne diris nista jer se nista ne moze promeniti tu...

a vidi sada sam video na jednom serveru vrijeme je 10 i rade kod mene iso i nema ih

Mozda ti ovo pomogne GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires);
        UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, encode_lights(0, 0, 0, 0), tires);
                VehicleLightsOn[GetPlayerVehicleID(playerid)] = true;



ubacio sam pa sacu da vidim ocel radit

errori
error 017: undefined symbol "panels"
undefined symbol "panels"
error 017: undefined symbol "VehicleLightsOn"
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

stavi na vrh new VehicleLightsOn[MAX_PLAYERS]; a pod OnPlayerConnect VehicleLightsOn[playerid] = 0;