Skip to content
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

GetPlayerDynamicAreas() and GetDynamicAreasForPoint() doesn't work #475

Open
douq opened this issue Feb 17, 2024 · 0 comments
Open

GetPlayerDynamicAreas() and GetDynamicAreasForPoint() doesn't work #475

douq opened this issue Feb 17, 2024 · 0 comments

Comments

@douq
Copy link

douq commented Feb 17, 2024

I am using the newest streamer plugin and attempting to create a new system for my old gamemode. For this, I wanted to use the function "GetPlayerDynamicAreas()" to check if the player is in an area and to return the correct areas. The problem is that GetPlayerDynamicAreas() and GetDynamicAreasForPoint() just return an empty array.

I tested it on OPEN.MP and SA:MP. My test code is: https://pastebin.com/wmBSwP0N

OnPlayerEnterDynamicArea is called, and the area will be created. My debug prints:

[09:38:59] Area created (1).
[09:39:00] GPDA: 1 0 0 1 1
[09:39:00] GDAFP: 0 0

So, IsPlayerInAnyDynamicArea, GetPlayerNumberDynamicAreas, and IsPlayerInDynamicArea work correctly. However, GPDA and GDAFP don't work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant