Re-created Movable Garage doors crash
#1

If i delete a movable garage door with ( RemoveBuildingForPlayer ) and i create back to old pos i get crash, or i create other movable garage model near movable garage door pos i crash...

i tried these objects:

CreateObject(5856,1024.9844,-1029.3516,33.1953,0.0,0.0,90.0);
CreateObject(5779,1041.3516,-1025.9297,32.6719,0.0,0.0,90.0);
CreateObject(5340,2644.8594,-2039.2344,14.0391,0.0,0.0,90.0);
CreateObject(5422,2071.4766,-1831.4219,14.5625,0.0,0.0,0.0);
CreateObject(6400,488.2813,-1734.6953,12.3906,0.0,0.0,81.5);
CreateObject(13028,720.0156,-462.5234,16.8594,0.0,0.0,90.0);
Reply
#2

I never looked into re-creating objects but it sounds logical to me that it crashes when you remove the default object and create a new object with the same model in the same place. Does the model of the created object get removed too then and causes the crash?
OR does it cause a crash because the game wants to open the non-existing garage door?

Would be nice to know what exactly causes this.
Reply
#3

if i remove objects i dont get crash...
if i create an moveable model near moveable door pos i get crash...if i delete or dont delete object
Reply
#4

You simply cannot add/replace the "door" objects of the original safehouse garage doors with another door.
Reply
#5

if i create other moveable model near a door = crash
i want lock garages but i need search other object
Reply
#6

Several garage doors are specified by the game as "garage doors" (obviously). But this means that the game will search for those "garage doors" in the specified "garage areas". I think it crashes when the game finds out it can't move or attach to dynamic objects (SA-MP objects, doesn't need to be streamer related) instead of the static preloaded objects found in IPL files. Which means that the game will try applying code to the wrong type of object, which results in a crash.

But I'm not sure if this is the actual reason.

This isn't a SA-MP bug, as far as I know. If you try the same via SCM or Cleo, the game will crash as well.
Reply
#7

You just can't do it. As Basssiiie mentioned, this is not really a SA:MP thing because it happens in other mods too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)