SA-MP Forums Archive
SetObjectMaterialText bug? - 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: SetObjectMaterialText bug? (/showthread.php?tid=421293)



SetObjectMaterialText bug? - ombre - 09.03.2013

Hello

I use SetObjectMaterialText like this example:

Code:
public testrandom()
new string[156];
new test = random(3);
format(string, sizeof(string), "num %d",test );
SetObjectMaterialText(object1, string, 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 20, 0, 0xFFFFFFAA, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

/command
testrandom()
Works fine, return "num 1 or 2 or 0..." but after I used 15-16 times the /command who call testrandom() SetObjectMaterialText is blocked on the last and don't show other number

Why?

thanks


Re : SetObjectMaterialText bug? - ombre - 09.03.2013

I post on server bug i thinks


Re : SetObjectMaterialText bug? - ombre - 10.03.2013

nobody? old here https://sampforum.blast.hk/showthread.php?tid=377343 no answer