DestroyDynamic3DTextLabel\Pickup - 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: DestroyDynamic3DTextLabel\Pickup (
/showthread.php?tid=603126)
DestroyDynamic3DTextLabel\Pickup -
SamJust - 19.03.2016
Код:
DestroyDynamicPickup(pickup[params[0]]);
DestroyDynamic3DTextLabel(textlabel[params[0]]);
Streamer_Update(playerid);
It is as simple as that but (!) when i use this command, this is a part of the command, it doesn't destroy neither the pickup nor the 3dtextlabel.
Re: DestroyDynamic3DTextLabel\Pickup -
SickAttack - 19.03.2016
"params[0]" isn't holding the correct value then.
Also, you don't need to use "Streamer_Update".
Re: DestroyDynamic3DTextLabel\Pickup -
SamJust - 19.03.2016
The rest of the command is working perfectly fine, it's just these two...
Update
Mistake founded. Thanks for ur help anyway.
Re: DestroyDynamic3DTextLabel\Pickup -
SickAttack - 19.03.2016
Post the solution for future similar issues...
Re: DestroyDynamic3DTextLabel\Pickup -
SamJust - 19.03.2016
There is no solution, I was creating pickup and textlabel in 2 different parts of the code, firstly already existing ones from .ini file in OnGameModeInit, second actually creating a new ones. And when I was creating new ones during game i forgot to assing pickup's and textlabel's id's to variable.