Jump to content
  • 0

pomoc Stav :)


mourison

Dotaz

Zdravím, omlouvám se, že zase ruším :)
Mám problém a ne a ne dohledat chybu :d , Auto by mělo mít 1000 životů ale má jich o trochu víc, ale nevím proč :/.

Stav by měl být 1000

http://postimg.org/image/giuvchda9/

 

Zde je kód

for(new i;i<MAX_PLAYERS;i++)
{
  if(IsPlayerInAnyVehicle(i))
  {
   new rychlost[41];
   new radek[256];	
   new Float:stav;
   new veh = GetPlayerVehicleID(i);
    GetVehicleHealth(veh, stav);
      format(rychlost, sizeof(rychlost), "%d", ZjistiRychlost(i, 0));
      format(radek, sizeof(radek), "%d",stav);
        TextDrawSetString(Textdraw11[i], rychlost); 
        TextDrawSetString(Textdraw21[i],radek);
  }
}
Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Globální moderátor

možná se setkáš s ještě jednou věcí.

 

Pokud budeš používat sobeit na debug apod. tak sobeit zabraňbuje autu nastavit větší hp než 100, a tak více jak 100 hp se sobeitem auto mít nebude. ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...