SA-MP Forums Archive
SetDynamicObjectMaterialText - error 035: argument type mismatch (argument 3) - 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: SetDynamicObjectMaterialText - error 035: argument type mismatch (argument 3) (/showthread.php?tid=635555)



SetDynamicObjectMaterialText - error 035: argument type mismatch (argument 3) - Juand - 09.06.2017

Hey, i have downloaded a map from internet, and it wont work, i have tried to fix this line , but i don't really understand the parameters, can you guys help me work this out? thanks a lot!

error 035: argument type mismatch (argument 3)

Quote:

SetDynamicObjectMaterialText(objectfurnitureshop, 0, 5708, "hospital_lawn", "hosp03b_law", -1);




Re: SetDynamicObjectMaterialText - error 035: argument type mismatch (argument 3) - SyS - 09.06.2017

PHP код:
SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0); 



Re: SetDynamicObjectMaterialText - error 035: argument type mismatch (argument 3) - Fairuz - 09.06.2017

Are you sure that you want to use SetDynamicObjectMaterialText instead of SetDynamicObjectMaterial?
PHP код:
SetDynamicObjectMaterial(objectid, materialindex, modelid, const txdname[], const texturename[], materialcolor = 0) 
PHP код:
SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0) 
Edit:I'm so late,on my phone right now,sorry.