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



error 035: argument type mismatch (argument 2) - Pachino - 31.08.2018

Please help me to fix this problem, this code line:
Код:
SetDynamicObjectMaterialText(spwnobjid, "{FFFFFF}MARKET", 0, 120, "Ariel", 100, 1, 0x00000000, 0x00000000, 1);



Re: error 035: argument type mismatch (argument 2) - solstice_ - 31.08.2018

Quote:
Originally Posted by Pachino
Посмотреть сообщение
Please help me to fix this problem, this code line:
Код:
SetDynamicObjectMaterialText(spwnobjid, "{FFFFFF}MARKET", 0, 120, "Ariel", 100, 1, 0x00000000, 0x00000000, 1);
Ariel should be Arial

https://sampwiki.blast.hk/wiki/SetObjectMaterialText, check this.


Re: error 035: argument type mismatch (argument 2) - Pachino - 31.08.2018

SetDynamicObjectMaterialText(spwnobjid, "{FFFFFF}MARKET", 0, 120, "Arial", 100, 1, 0x00000000, 0x00000000, 1);

Same error...


Re: error 035: argument type mismatch (argument 2) - Dayrion - 31.08.2018

Код:
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 035: argument type mismatch (argument 2) - solstice_ - 31.08.2018

PHP код:
SetDynamicObjectMaterialText(spwnobjid"MARKET"0120"Arial"10010xFFFFFFFF0xFFFFFFFF1); 
Try this..

EDIT: Didn't see Dayrion's reply but still.


Re: error 035: argument type mismatch (argument 2) - Pachino - 31.08.2018

Same problem... HELP PLEASE


Re: error 035: argument type mismatch (argument 2) - Dayrion - 01.09.2018

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Код:
SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0)
Quote:
Originally Posted by Pachino
Посмотреть сообщение
Same problem... HELP PLEASE
Yea dude... READ PLEASE
- You put arguments in the wrong way.


Re: error 035: argument type mismatch (argument 2) - UFF - 01.09.2018

Код:
SetDynamicObjectMaterialText(spwnobjid, 0, "{FFFFFF}MARKET", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 22, 0, 0xFF0000FF, 9, 0);
try this


Re: error 035: argument type mismatch (argument 2) - Shinja - 01.09.2018

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

From wiki
materialindex The material index on the object to change (0 to 15)


Re: error 035: argument type mismatch (argument 2) - UFF - 01.09.2018

Quote:
Originally Posted by Shinja
Посмотреть сообщение
Код:
SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0)
Indeed he is

From wiki
materialindex The material index on the object to change (0 to 15)
here is the code which i gave him.

Quote:
Originally Posted by UFF
Посмотреть сообщение
Код:
SetDynamicObjectMaterialText(spwnobjid, 0, "{FFFFFF}MARKET", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 22, 0, 0xFF0000FF, 9, 0);
try this
Reply from him.
Quote:
Originally Posted by Pachino
Посмотреть сообщение
Doesnt work, help me please, same error!
any idea?, @Shinja