From 4e08bddbca8dd83f230c3882bc010bd385262e1a Mon Sep 17 00:00:00 2001 From: Alex Cole Date: Mon, 1 Jan 2024 15:47:24 +0100 Subject: [PATCH] Missing `__const` in y_va. --- YSI_Coding/y_va/y_va_entry.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/YSI_Coding/y_va/y_va_entry.inc b/YSI_Coding/y_va/y_va_entry.inc index 2e889d70..840104ee 100644 --- a/YSI_Coding/y_va/y_va_entry.inc +++ b/YSI_Coding/y_va/y_va_entry.inc @@ -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:...)