-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetPlayerInterior #166
Comments
By "script" I assume you mean filterscript here? Their interior will be reset to 0 if the script is a gamemode. |
The server run with a bare game mode which is included with the SA-MP server files and I’m used this filterscript with fixes.inc on this video. So yeah, it’s a filterscript. |
OK, am I right that you're running a gamemode without fixes.inc, going in to an interior, then loading the FS with it on. If so, that's quite a tricky thing to solve and will probably affect quite a few fixes. The code is written somewhat assuming that it is always running and knows the current state of the server at all times. Many things are initialised when fixes.inc is first started (it does try to account for reloads, but only if it was there earlier) because some of the bugs are that some data is not correctly initialised, so relying on that to begin with defeats the object. Does it work correctly if you have fixes.inc in the gamemode? |
As an example - take checkpoints. I don't know of a solution to this, it might be impossible without loading the include earlier. |
I'm using open.mp now and I did not tested this again since I've created this issue. But I've noticed |
GetPlayerInterior returns 0 when a script is reloaded, even if a player is inside an interior
You can see this on the video:
https://streamable.com/8ax9gj
The text was updated successfully, but these errors were encountered: