Re: [SSGM Plugin] Ping [message #488997 is a reply to message #488989] |
Mon, 11 August 2014 12:54 |
|
roszek
Messages: 296 Registered: June 2010
Karma:
|
Recruit |
|
|
Xpert wrote on Mon, 11 August 2014 06:22 |
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));
|
Fixed, re-uploaded, and thanks for the advice.
[Updated on: Mon, 11 August 2014 12:55] Report message to a moderator
|
|
|