Giter Club home page Giter Club logo

Comments (6)

rbozan avatar rbozan commented on July 23, 2024

It could be related to this:
#13

I'm not sure though, but at OnPlayerDisconnect, it does say playerid 0 (null), and it does have an error at the callback hook.

from samp-streamer-plugin.

samp-incognito avatar samp-incognito commented on July 23, 2024

Could be because some other include is hooking OnPlayerDisconnect incorrectly (or there's some problem in your script with that callback), and that error is propagating to the streamer include's callback hook. I'm guessing that crash is happening because a null pointer is being dereferenced due to one or more of the OnPlayerDisconnect parameters being null, for some reason. That's what was #13 was about, anyway (which was due to someone incorrectly invoking Streamer_CallbackHook with sampgdk, so unless you're doing that, the cause of your problem lies elsewhere).

I could see about adding additional checks to the callback hooks so that the server doesn't crash if Streamer_CallbackHook is executed incorrectly, but I think you should see what's going on with your OnPlayerDisconnect code first.

from samp-streamer-plugin.

rbozan avatar rbozan commented on July 23, 2024

I would like it if you could add these additional checks. I'm currently clueless as I can't see anything wrong with my OnPlayerDisconnect.

I hope you can add those additional checks. I will reread my whole OnPlayerDisconnect code again, but I'm not sure if I can find anything suspicious.

from samp-streamer-plugin.

rbozan avatar rbozan commented on July 23, 2024

Please tell me when you've added those additional checks. My server gets quite popular but the crashes makes it almost impossible to hit a higher player base.

from samp-streamer-plugin.

samp-incognito avatar samp-incognito commented on July 23, 2024

The integrated callback hooks from sampgdk I've just re-added should solve this issue, as long as there aren't other problems associated with them as well. I'll see about releasing a new version for testing soon.

from samp-streamer-plugin.

rbozan avatar rbozan commented on July 23, 2024

Thanks :)

from samp-streamer-plugin.

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.