Szerző Téma: Futott KM  (Megtekintve 747 alkalommal)

Nem elérhető Live

  • 507
    • Profil megtekintése
Futott KM
« Dátum: 2013. Május 25. - 18:43:40 »
0 Show voters
Helló.
Van egy Futott KM scriptem, de amikor kiírja akkor nem azt írja ki, hogy Futott KM: 2 hanem azt, hogy Futott KM: 10.14484124
A stringben %f -el van.
Üdv,
Live

Futott KM
« Válasz #1 Dátum: 2013. Május 25. - 18:58:04 »
0 Show voters
próbáld meg így %.1f a %f helyett

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Futott KM
« Válasz #2 Dátum: 2013. Május 25. - 19:11:46 »
0 Show voters
Ha privibe elküldöd a scriptet, talán tudok segíteni!

Nem elérhető Live

  • 507
    • Profil megtekintése
Futott KM
« Válasz #3 Dátum: 2013. Május 25. - 19:38:56 »
0 Show voters
new Float:Kilometer[MAX_VEHICLES];
forward MasodpercesIdozito();
public MasodpercesIdozito()
{
new
playerid = -1,
maxplayers = GetMaxPlayers();
for(;++playerid < maxplayers;)
{
if(IsPlayerConnected(playerid))
{
   if(IsPlayerInAnyVehicle(playerid) && !GetPlayerVehicleSeat(playerid))
   {
      Kilometer[GetPlayerVehicleID(playerid)] += GetVehicleSpeed(GetPlayerVehicleID(playerid))*0.278;
   }
}
}
}

 
OnGameModeInit alatt:
 
SetTimer(\"MasodpercesIdozito\", 1000, true);

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Futott KM
« Válasz #4 Dátum: 2013. Május 25. - 19:50:35 »
0 Show voters
*0.278 helyett *0.3

Nem elérhető Live

  • 507
    • Profil megtekintése
Futott KM
« Válasz #5 Dátum: 2013. Május 25. - 20:33:52 »
0 Show voters
Na jó.
De mikor elindulok a kocsival akkor egybõl felugrik 241.4 -re például.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal