Skip to content

Commit

Permalink
Missing __const in y_va.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Cole committed Jan 1, 2024
1 parent 538b312 commit 4e08bdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions YSI_Coding/y_va/y_va_entry.inc
Original file line number Diff line number Diff line change
Expand Up @@ -339,20 +339,20 @@ stock bool:va_SetVehicleNumberPlate(vehicleid, const fmat[], GLOBAL_TAG_TYPES:..
{
// If you get an error here, update your includes!
if (YSI_CheckNumargs__(10))
return bool:SetObjectMaterialText(objectid, __const(fmat), materialIndex, materialSize, fontFace, fontSize, bold, fontColour, backgroundColour, textalignment);
return bool:SetObjectMaterialText(objectid, __const(fmat), materialIndex, materialSize, __const(fontFace), fontSize, bold, fontColour, backgroundColour, textalignment);
return
format(YSI_UNSAFE_HUGE_STRING, YSI_UNSAFE_HUGE_LENGTH, fmat, ___(10)),
bool:SetObjectMaterialText(objectid, YSI_UNSAFE_HUGE_STRING, materialIndex, materialSize, fontFace, fontSize, bold, fontColour, backgroundColour, textalignment);
bool:SetObjectMaterialText(objectid, YSI_UNSAFE_HUGE_STRING, materialIndex, materialSize, __const(fontFace), fontSize, bold, fontColour, backgroundColour, textalignment);
}

stock bool:va_SetPlayerObjectMaterialText(playerid, objectid, const fmat[], materialIndex = 0, OBJECT_MATERIAL_SIZE:materialSize = OBJECT_MATERIAL_SIZE:90, const fontFace[] = "Arial", fontSize = 24, bool:bold = true, fontColour = 0xFFFFFFFF, backgroundColour = 0, OBJECT_MATERIAL_TEXT_ALIGN:textalignment = OBJECT_MATERIAL_TEXT_ALIGN:0, GLOBAL_TAG_TYPES:...)
{
// If you get an error here, update your includes!
if (YSI_CheckNumargs__(11))
return bool:SetPlayerObjectMaterialText(playerid, objectid, __const(fmat), materialIndex, materialSize, fontFace, fontSize, bold, fontColour, backgroundColour, textalignment);
return bool:SetPlayerObjectMaterialText(playerid, objectid, __const(fmat), materialIndex, materialSize, __const(fontFace), fontSize, bold, fontColour, backgroundColour, textalignment);
return
format(YSI_UNSAFE_HUGE_STRING, YSI_UNSAFE_HUGE_LENGTH, fmat, ___(11)),
bool:SetPlayerObjectMaterialText(playerid, objectid, YSI_UNSAFE_HUGE_STRING, materialIndex, materialSize, fontFace, fontSize, bold, fontColour, backgroundColour, textalignment);
bool:SetPlayerObjectMaterialText(playerid, objectid, YSI_UNSAFE_HUGE_STRING, materialIndex, materialSize, __const(fontFace), fontSize, bold, fontColour, backgroundColour, textalignment);
}

stock Text3D:va_Create3DTextLabel(const fmat[], colour, Float:x, Float:y, Float:z, Float:drawDistance, virtualWorld, bool:testLOS = false, GLOBAL_TAG_TYPES:...)
Expand Down

0 comments on commit 4e08bdd

Please sign in to comment.