Skip to content

Commit

Permalink
Update SetObjectMaterialText.md (#1091)
Browse files Browse the repository at this point in the history
"OBJECT_MATERIAL_TEXT_ALIGN_CENTER" Exceeds the compiler character limit! I changed it to "OBJECT_MATERIAL_TEXT_ALIGN_CENT".
  • Loading branch information
CifraS2 authored Jan 30, 2025
1 parent c7a06b2 commit 55023e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/scripting/functions/SetObjectMaterialText.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[])
if (strcmp("/text", cmdtext, true) == 0)
{
new objectId = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0); //create the object
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);
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);
// write "SA-MP 0.3.DL" on the object, with orange font color and black background
return 1;
}
Expand Down

0 comments on commit 55023e0

Please sign in to comment.