From 41db70ac881bb98e638125b4f608dd43371e8461 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Thu, 18 Jul 2024 21:53:31 +0800 Subject: [PATCH] [saco] Update `DumpNetworkStateInformation(...)` --- saco/exceptions.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/saco/exceptions.cpp b/saco/exceptions.cpp index 91ea6f3..fb6dd15 100644 --- a/saco/exceptions.cpp +++ b/saco/exceptions.cpp @@ -14,6 +14,7 @@ extern CNetGame *pNetGame; extern CChatWindow *pChatWindow; extern DWORD dwScmOpcodeDebug; extern BOOL bScmLocalDebug; +extern BYTE *pbyteCurrentPlayer;//internal GTA FindPlayerPed() number extern int iGtaVersion; extern WORD wLastRendObj; extern WORD wVehicleComponentDebug; @@ -25,6 +26,13 @@ int dword_10125A58=0; void DumpNetworkStateInformation(PCHAR sz) { + CPlayerPool *pPlayerPool = pNetGame->GetPlayerPool(); + PLAYERID playerId=0; + + sz[0] = '\0'; + + sprintf(sz,"\r\nState Information: Ped Context: %u\r\n",*pbyteCurrentPlayer); + // TODO: DumpNetworkStateInformation 10060160 }