From f039f57f11eb3bc5bb10f064336773098bdde76b Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Fri, 4 Oct 2024 20:24:30 +0200 Subject: [PATCH] Fix error messages on sendnotification --- src/LuaAPI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LuaAPI.cpp b/src/LuaAPI.cpp index c378e83..4bb7eca 100644 --- a/src/LuaAPI.cpp +++ b/src/LuaAPI.cpp @@ -217,11 +217,11 @@ std::pair LuaAPI::MP::SendNotification(int ID, const std::str auto c = MaybeClient.value().lock(); if (!c->IsSynced()) { Result.first = false; - Result.second = "Player still syncing data"; + Result.second = "Player is not synced yet"; return Result; } if (!Engine->Network().Respond(*c, StringToVector(Packet), true)) { - beammp_errorf("Failed to send notification back to sender (id {}) - did the sender disconnect?", ID); + beammp_errorf("Failed to send notification to player (id {}) - did the player disconnect?", ID); Result.first = false; Result.second = "Failed to send packet"; }