【求助】怎么读取Psychostats3.1数据库SQL中的中文ID
如题“怎么读取Psychostats3.1数据库SQL中的中文ID”/* PS3 Stats - Psychostats3 in-game statistic v. 1.0
Author: GeroiN
E-Mail: maxim<.at.>osetia.org
Homepage: http://portal.kaliningrad.ru
*/
#include <amxmodx>
#include <amxmisc>
#include <sqlx>
//#include <dbi>
#include "li_geoip"
#include <fakemeta>
#include <memhack>
#define PLUGIN "PS3 - stats rank top15"
#define VERSION "1.0"
#define AUTHOR "GeroiN"
#define SAYRANK1
#define SAYTOP15 2
#define GETUNIQUEID 3
#define ENTERRANK 4
//#define PSDEBUG
#define MAX_BUFFER_LENGTH 2047
// Global vars
new Handle:g_DbInfo
new g_psprefix
new g_QueryNum
new g_Type
new g_JoinedTeam
new szName
new g_msgid
new g_SpecMode
stock get_name(id, name[], len)
{
new buffer = engfunc(EngFunc_GetInfoKeyBuffer, id)
new strtmp1
copy_infokey_buffer(buffer, strtmp1, 255)
new offset = contain(strtmp1, "\name\") + 6
new thischr
new i
for (;;i++)
{
thischr = memhack_get_char(buffer + offset + i, MEM_NULLBASE, MEMTYPE_DATA, MEM_SIGNED)
if (thischr == '\' || thischr == 0)
{
name = 0
break
}
else
{
name = thischr
}
}
name = 0
}
代码发不出来,字数超限制,发附件,
顶一下。。。。期待高手解答,谢谢。 社呢们是3.1数据
页:
[1]