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 #488989 is a reply to message #488988] Mon, 11 August 2014 06:22 Go to previous messageGo to previous message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma:
General (1 Star)
Neijwiert wrote on Mon, 11 August 2014 05:49


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.



It does. You're better off using something like

GameObject *sender = Get_GameObj(PlayerID);
Get_Wide_Player_Name(sender));


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
 
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:41:33 MST 2024

Total time taken to generate the page: 0.00829 seconds