SA-MP Forums Archive
Bug SetObjectMaterialText. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Bug SetObjectMaterialText. (/showthread.php?tid=422860)



Bug SetObjectMaterialText. - OTACON - 15.03.2013

Hi all,

SetObjectMaterialText has error, when written more than 15 times on the same object SetObjectMaterialText stops working. in order


Re: Bug SetObjectMaterialText. - mastermax7777 - 15.03.2013

post code? what do u mean "in order"


Re: Bug SetObjectMaterialText. - Pottus - 15.03.2013

You need to destroy your object and re-create it each update.


Re: Bug SetObjectMaterialText. - thistooshallpass93 - 15.03.2013

Could you explain yourself a little better? not quite sure I understand.


Re: Bug SetObjectMaterialText. - Pottus - 15.03.2013

I already explained "You need to destroy your object and re-create it each update" there is nothing else he needs to explain I've seen this bug before basically if you update your objects text with SetObjectMaterialText() more than 15 times without destroying/creating the object it will stop updating.


Re: Bug SetObjectMaterialText. - OKStyle - 20.03.2013

Yeah, after 16-th change materials, object must be recreated. Also I found one more bug: you can't change materials with layer index > 15.