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.9413, 1726.6653, 26.5963,1.0,-1,-1,playerid,100000.0);
Or
PHP код:
if(IsValidDynamicObject(DoorC4)) DestroyDynamicObject(DoorC4);
DoorC4 = CreateDynamicObject(1654, -82.9940, 1713.8145, 25.1633, 0.00000, 90.00000, 50.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.9413, 1726.6653, 26.5963,1.0,-1,-1,playerid,100000.0);
Streamer_Update(playerid,2);
And
PHP код:
if(IsValidDynamicObject(DoorC4)) DestroyDynamicObject(DoorC4);
DoorC4 = CreateDynamicObject(1654, -82.9940, 1713.8145, 25.1633, 0.00000, 90.00000, 50.00000);
for(new i=0; i<MAX_PLAYERS; i++) 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?