Error,please help - 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: Error,please help (
/showthread.php?tid=442019)
Error,please help -
dEcooR - 05.06.2013
Hello,im using streamer plugin and if i want to convert SetObjectMaterialText to SetDynamicObjectMaterialText
it says error this:
Код:
error 035: argument type mismatch (argument 2)
my code:
Код:
SetDynamicObjectMaterialText(billboard[a], inputtext, 0, OBJECT_MATERIAL_SIZE_512x128,\
"Arial", 35, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Thanks
Re: Error,please help -
Red_Dragon. - 05.06.2013
Are you sure you used the correct parameters ? Check with these correct parameters
pawn Код:
native SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
Re: Error,please help -
dEcooR - 05.06.2013
hmm here is it:
Код:
SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
SetObjectMaterialText(billboard[a], dini_Get(cesta, "text"), 0, OBJECT_MATERIAL_SIZE_512x128,"Arial", 35, 0,0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
btw if im use normal SetObjectMaterialText it is okay without error,but i need to convert it to dynamic
Re: Error,please help -
SuperViper - 05.06.2013
Switch
dini_Get with the
0 right after it.
#1000 posts
Re: Error,please help -
dEcooR - 05.06.2013
yep thnx,and it will work normal ?