Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM Plugin] Ping
Re: [SSGM Plugin] Ping [message #488988 is a reply to message #488984] Mon, 11 August 2014 02:49 Go to previous messageGo to previous message
Neijwiert is currently offline  Neijwiert
Messages: 124
Registered: October 2009
Karma:
Recruit
You can replace this construction: "Find_Player(Get_Player_Name_By_ID(PlayerID))->Get_GameObj();" with this "Get_GameObj(PlayerID)". Which is also fail-safe and a shorter line Very Happy

EDIT:
also im pretty sure Get_Player_Name_By_ID causes a memory leak. becouse it creates a new char array and probably uses WideCharToChar engine call.

[Updated on: Mon, 11 August 2014 02:51]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [SSGM Plugin] Donate
Next Topic: [SSGM Plugin] Command
Goto Forum:
  


Current Time: Tue Dec 17 04:50:12 MST 2024

Total time taken to generate the page: 0.00631 seconds