Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-08-16, 00:33


Sowik







Wiek: 30
Na forum: 5581 dni
Posty: 48

Piwa: 429

Respekt: 12

Siema.
W server_log mam spam errorami typu:
Cytat:

(TimerFix) ERROR: The function "UpdateVehicleFuelMileageTD" didn't properly execute, some timers might not have been called.

Co to oznacza i jak to naprawi??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-08-16, 08:25


optimus

PawnoMen






Wiek: 27
Na forum: 5614 dni
Posty: 453
Nick w MP: [PMS]ReveresPL

Piwa: 159

Respekt: 59

Ostrzeżeń: 80%
A masz jaki? timer podpiety do tej funkcji !!

Podpis
Prpgramujesz w Unity i potrzebujesz pomocy?
|?Zapraszamy na forum Unity?|
http://www.unity3d.ugu.pl
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-08-16, 09:41


Sowik







Wiek: 30
Na forum: 5581 dni
Posty: 48

Piwa: 429

Respekt: 12

Raczej tak.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-08-16, 09:59


Combacior







Wiek: 29
Na forum: 5796 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
Poka? kod z UpdateVehicleFuelMileageTD

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-08-16, 10:25


Sowik







Wiek: 30
Na forum: 5581 dni
Posty: 48

Piwa: 429

Respekt: 12

Kod:

public UpdateVehicleFuelMileageTD(vehid, addtovar)
{
new playerid = INVALID_PLAYER_ID;
foreach(Player, i)
{
if(IsPlayerInVehicle(i, vehid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
playerid = i;
break;
}
}

if(!addtovar)
{
vInfo[vehid][Fuel]-=0.16;
if(vInfo[vehid][Fuel] <= 0.0)
{
vInfo[vehid][Fuel] = 0.0;
if(playerid != INVALID_PLAYER_ID)
GameTextForPlayer(playerid, TEXT_191, 1999, 5);
new e, l, a, d, bn, bt, o;
GetVehicleParamsEx(vehid, e, l, a, d, bn, bt, o);
if(e == 1)
SetVehicleParamsEx(vehid, 0, l, a, d, bn, bt, o);
}

new Float:speed;
GetVehicleSpeed(vehid, speed);
if(speed > 1)
{
vInfo[vehid][Mileage]+=floatdiv(speed, 1700.0);
if(playerid != INVALID_PLAYER_ID)
pInfo[playerid][Mileage]+=floatdiv(speed, 1700.0);
}
}

new tdstr[60], fuelColor, fuel = floatround(vInfo[vehid][Fuel], floatround_ceil);

if(fuel >= 40.0)
fuelColor = 'b';
else if(fuel < 40.0 && fuel >= 15.0)
fuelColor = 'y';
else if(fuel < 15.0)
fuelColor = 'r';

new Float:vehHealth, healthColor = 'b';
GetVehicleHealth(vehid, vehHealth);
if(vehHealth < 250.0)
healthColor = 'r';
else if(vehHealth <= 390.0)
healthColor = 'y';

format(tdstr, sizeof tdstr, TEXT_162, fuelColor, fuel);
TextDrawSetString(pInfo[playerid][FuelTD], tdstr);
format(tdstr, sizeof tdstr, TEXT_163, healthColor, vehHealth/10, vInfo[vehid][Mileage]);
TextDrawSetString(pInfo[playerid][MileageTD], tdstr);
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-08-16, 11:08


Combacior







Wiek: 29
Na forum: 5796 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
Co ta funkcja ma robi?, bo zbytnio nie rozumiem.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-08-16, 11:46


klimber013







Wiek: 36
Na forum: 5436 dni
Posty: 3
Nick w MP: klimber013

Piwa: 87

Respekt: 50

Ostrzeżeń: 20%
mi sie zdaje ze to funkcja od paliwa

Postaw piwo autorowi tego posta
 

 
Tagi: updatevehiclefuelmileagetd :: spam :: server_log
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku