CreateDynamicObject & DestroyDynamicObject - 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: CreateDynamicObject & DestroyDynamicObject (
/showthread.php?tid=487868)
CreateDynamicObject & DestroyDynamicObject -
Nourdin - 15.01.2014
Hello there,
I added this under my OnGameModeInit:
pawn Код:
walls[0] = CreateDynamicObject(2928,1524.2233880,1710.4650870,11.1408360,0.0000000,0.0000000,0.0000000, 0); //
walls[1] = CreateDynamicObject(2928,1524.2233880,1710.4650870,13.6408360,0.0000000,0.0000000,0.0000000, 0); //
But the objects doesn't appear ingame?
Re: CreateDynamicObject & DestroyDynamicObject -
Nourdin - 15.01.2014
Bump - It's really important. I am willing to hand out a reputation for the one that posts a solution.
Respuesta: CreateDynamicObject & DestroyDynamicObject -
Swedky - 15.01.2014
The virtual world of the Player be fixed. It must put the virtual world of the players in '0' in order that the objects are visible.
https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
Re: CreateDynamicObject & DestroyDynamicObject -
Nourdin - 15.01.2014
Isn't the code set in world 0? ..
Re: CreateDynamicObject & DestroyDynamicObject -
Lorenzo! - 15.01.2014
Besides all these previous comments, you have to make sure you don't mix up with CreateObject. As far as I am aware of, you cannot use both these functions in one script. If you have any CreateObject functions in your script, try to replace them with CreateDynamicObject.
Re: CreateDynamicObject & DestroyDynamicObject -
Nourdin - 15.01.2014
Problem found I forgot the return 0.
Re: CreateDynamicObject & DestroyDynamicObject -
Mattakil - 15.01.2014
it should return 1.
pawn Код:
native CreateDynamicObject(Model, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, worldid, interiorid, -1);
-1 = playerid