From d8b37a40247a1d358ad9538457234a42b489fd94 Mon Sep 17 00:00:00 2001 From: igromanru Date: Mon, 7 Oct 2024 15:30:58 +0200 Subject: [PATCH] refactor(registerhook.md): Format print input with string.format --- docs/lua-api/global-functions/registerhook.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/lua-api/global-functions/registerhook.md b/docs/lua-api/global-functions/registerhook.md index d7883adb6..0912b6c8a 100644 --- a/docs/lua-api/global-functions/registerhook.md +++ b/docs/lua-api/global-functions/registerhook.md @@ -39,9 +39,9 @@ PreId, PostId = RegisterHook("/Script/Engine.PlayerController:ClientRestart", fu local PlayerController = Context:get() local Pawn = NewPawn:get() - print("PayerController FullName: " .. PlayerController:GetFullName() .. "\n") + print(string.format("PlayerController FullName: %s\n", PlayerController:GetFullName())) if Pawn:IsValid() then - print("NewPawn FullName: " .. Pawn:GetFullName() .. "\n") + print(string.format("NewPawn FullName: %s\n", Pawn:GetFullName())) end if PreId then