Giter VIP home page Giter VIP logo

Comments (3)

ikkentim avatar ikkentim commented on July 23, 2024

I've tested this with this system: https://github.com/ikkentim/SampSharp/blob/master/src/TestMode.Entities/Systems/IssueTests/Issue419VehicleHealthOnGmx.cs

It seems to work just fine on both samp-server and open.mp.

I've tested it with GMX, how are you testing this?

from sampsharp.

joaoseidel avatar joaoseidel commented on July 23, 2024

Yes, on GMX works, the problem only occurs when shutting down. Is that the correct behavior?

from sampsharp.

ikkentim avatar ikkentim commented on July 23, 2024

I've verified this is a bug with open.mp. Here's the simplest reproduction case for this:

#include <a_samp>

main() return;

new vid;

public OnGameModeInit()
{
	vid = CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, -1, -1, 60);
	return 1;
}

public OnGameModeExit()
{
	new Float:h;
	GetVehicleHealth(vid, h);
	printf("health:  %f", h); // prints "health: 0" in open.mp, "health: 1000" in sa-mp
	return 1;
}

You can create an issue in the open.mp repo if you'd like to get this fixed.

from sampsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.