CreateDynamicObject & DestroyDynamicObject
#1

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?
Reply
#2

Bump - It's really important. I am willing to hand out a reputation for the one that posts a solution.
Reply
#3

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
Reply
#4

Isn't the code set in world 0? ..
Reply
#5

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.
Reply
#6

Problem found I forgot the return 0.
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)