SA-MP Forums Archive
Problem with create after destroy dynamic - 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 with create after destroy dynamic (/showthread.php?tid=631907)



Problem with create after destroy dynamic - MRM - 06.04.2017

When i destroy one object or checkpoint, create object or checkpoint not work after destroy.

For example,
PHP код:
DestroyDynamicCP(CP[playerid]);
CP[playerid] = CreateDynamicCP(-95.94131726.665326.5963,1.0,-1,-1,playerid,100000.0); 
Or

PHP код:
if(IsValidDynamicObject(DoorC4)) DestroyDynamicObject(DoorC4);
DoorC4 CreateDynamicObject(1654, -82.99401713.814525.1633,   0.0000090.0000050.00000); 



Re: Problem with create after destroy dynamic - MRM - 08.04.2017

UP ..


Re: Problem with create after destroy dynamic - Vince - 08.04.2017

Streamer_Update().


Re: Problem with create after destroy dynamic - MRM - 12.04.2017

This is correct?

PHP код:
DestroyDynamicCP(CP[playerid]); 
CP[playerid] = CreateDynamicCP(-95.94131726.665326.5963,1.0,-1,-1,playerid,100000.0);
Streamer_Update(playerid,2); 
And

PHP код:
if(IsValidDynamicObject(DoorC4)) DestroyDynamicObject(DoorC4); 
DoorC4 CreateDynamicObject(1654, -82.99401713.814525.1633,   0.0000090.0000050.00000); 
for(new 
i=0i<MAX_PLAYERSi++) Streamer_Update(i,0); 



Re: Problem with create after destroy dynamic - Sew_Sumi - 13.04.2017

It should be correct, at least it looks correct syntax wise. What's it doing now?