Skip to content

Commit 55023e0

Browse files
authored
Update SetObjectMaterialText.md (#1091)
"OBJECT_MATERIAL_TEXT_ALIGN_CENTER" Exceeds the compiler character limit! I changed it to "OBJECT_MATERIAL_TEXT_ALIGN_CENT".
1 parent c7a06b2 commit 55023e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/scripting/functions/SetObjectMaterialText.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[])
3636
if (strcmp("/text", cmdtext, true) == 0)
3737
{
3838
new objectId = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0); //create the object
39-
SetObjectMaterialText(objectId, "SA-MP {FFFFFF}0.{008500}3.{FF8200}DL", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 28, false, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
39+
SetObjectMaterialText(objectId, "SA-MP {FFFFFF}0.{008500}3.{FF8200}DL", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 28, false, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENT);
4040
// write "SA-MP 0.3.DL" on the object, with orange font color and black background
4141
return 1;
4242
}

0 commit comments

Comments
 (0)