Problem OnPlayerEnter/LeaveDynamicArea - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem OnPlayerEnter/LeaveDynamicArea (
/showthread.php?tid=664926)
Problem OnPlayerEnter/LeaveDynamicArea -
None1337 - 16.03.2019
So, I have 10 areas big and 10 areas small.
I have a big area: id 10, and in the area with ID 10, i have another area that is a little small then area with ID 10. The problem is that, OnPlayerEnterDynamicArea is not called for that small area, only for the big area.
How should I fix this?
Re: Problem OnPlayerEnter/LeaveDynamicArea -
SymonClash - 16.03.2019
Change area ID's, since as far i know, two areas can't have same ID.
Or just:
Then you can use YourAreaName[0] for big area and YourAreaName[1] for small area.
Re: Problem OnPlayerEnter/LeaveDynamicArea -
None1337 - 16.03.2019
Quote:
Originally Posted by SymonClash
Change area ID's, since as far i know, two areas can't have same ID.
Or just:
Then you can use YourAreaName[0] for big area and YourAreaName[1] for small area.
|
I have something like:
Код:
turf_area[turf_id][0] = ..CreateDynamicRectangleEx bla bla..
event_area[event_id][0] = ..CreateDynamicRectangleEx bla bla..
turf_area and event_area have different ID but still OnPlayerEnter/LeaveDynamicArea isn't called for event_area, I think is because the turf_area is bigger than event_area as size.
its like here:
https://imgur.com/a/Zma3FRi