Beispiel #1
0
        unsafe private static string GetPlayerName(int id)
        {
            int   len = 0;
            char *str = HackFunctions.getPlayerName(id, &len);

            if (len == 0)
            {
                return("");
            }
            string rst = "";
            int    i   = 0;

            while (i < len)
            {
                rst += *(str + i);
                i++;
            }
            MainForm.FreeMemory((int)str);
            return(rst);
        }