Error,please help
#1

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
Reply
#2

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);
Reply
#3

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
Reply
#4

Switch dini_Get with the 0 right after it.


#1000 posts
Reply
#5

yep thnx,and it will work normal ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)