DestroyDynamic3DTextLabel\Pickup
#1

Код:
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.
Reply
#2

"params[0]" isn't holding the correct value then.

Also, you don't need to use "Streamer_Update".
Reply
#3

The rest of the command is working perfectly fine, it's just these two...
Update
Mistake founded. Thanks for ur help anyway.
Reply
#4

Post the solution for future similar issues...
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)