error 035: argument type mismatch (argument 2)
#1

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

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.
Reply
#3

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

Same error...
Reply
#4

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

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

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

Same problem... HELP PLEASE
Reply
#7

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.
Reply
#8

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

Код:
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)
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)