Skip to content

Commit

Permalink
refactor(registerhook.md): Format print input with string.format
Browse files Browse the repository at this point in the history
  • Loading branch information
igromanru authored and UE4SS committed Oct 10, 2024
1 parent 2baeca1 commit d8b37a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/lua-api/global-functions/registerhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8b37a4

Please sign in to comment.