|
楼主 |
发表于 2020-3-19 20:12:11
|
显示全部楼层
来自 中国–河北–石家庄
本帖最后由 dongtianbao 于 2020-3-19 20:28 编辑
- public Get_ComeIn_user_stats(id){
- g_dbc = dbi_connect(g_host,g_user,g_pass,g_dbname,g_error,MAX_NAME_LENGTH)
- if (g_dbc == SQL_FAILED)
- log_amx("SQL Connection Failed")
- else
- {
- /*
- Fields in stats are:
- 0 - kills
- 1 - deaths
- 2 - headshots
- 3 - teamkilling
- 4 - shots
- 5 - hits
- 6 - damage
- Fields bodyhits are:
- 0 - generic (none)
- 1 - head
- 2 - chest
- 3 - stomach
- 4 - leftarm
- 5 - rightarm
- 6 - leftleg
- 7 - rightleg
- */
- new stats[8]
- new hits2[8]
- get_user_stats(id, stats, hits2)
- get_user_name(id, g_names[g_count], MAX_NAME_LENGTH)
-
- new Result:QueryResult = dbi_query(g_dbc,"SELECT * FROM `%s` WHERE auth ='%s'",g_sql_table,g_names[g_count])
-
- if (QueryResult== RESULT_NONE)
- {
-
- g_iPStats[g_count][reg] = 0
- }
复制代码 |
|