serfreeman1337 / csstatsx-sql Goto Github PK
View Code? Open in Web Editor NEWЗапись статистики csstats в БД MySQL
Запись статистики csstats в БД MySQL
Привет, хотел узнать для чего нужны таблици h_0 - h_7 . Что в них записывается ?
L 03/16/2020 - 14:28:00: [csstatsx_sql.amxx] SQL query failed
L 03/16/2020 - 14:28:00: [csstatsx_sql.amxx] [ 2003 ] Can't connect to MySQL server on '127.0.0.1' (4)
I am getting the message above, but it is working and not working randomly.
All other plugins do work with SQL.
I have restarted the mysql server and it didn't fix it.
I have tried to use localhost instead of 127.0.0.1 but, then I got error 2002 about socket.
I am calling the native with using original CSX and using the native in statsx plugin.
Any idea?
As the title says, try the following code:
new stats2[4], wSteamid[32], gSteamid[32];
get_stats2_sql(id, stats2, wSteamid, 31);
get_user_authid(id, gSteamid, 31);
client_print(id, print_chat, "get_stats2_sql: %s | get_user_authid: %s",wSteamid, gSteamid);
This will result in different SteamID-s printed out. (masked example)
get_stats2_sql: STEAM_0:1:XXXXXX | get_user_authid: STEAM_0:1:YYYYYYY
For the reason above any values returned by stats2 are wrong.
In the database I have set 50 bombdef and 50 bombdefuse and 4 bombplants, but it returns 38 bombdefuse and 8 bombplants what exatly match an other line (other player) in the database.
Отсутствует csstats_weapon.sql для самостоятельного создания таблиц (если csstats_sql_create_db задано в "0").
Выходной коэффециент, вроде как нужно подсчитывать отдельно для каждого игрока, а не только для убийцы. Фикс։ #7
Старая версия функции, которая выполняла проверку неверно, и, в последствии, не сохраняло данные в колонки с Team Kill и Team Damage:
is_tk(killer,victim)
{
if(killer == victim)
return true
return false
}
Новый вариант:
is_tk(killer,victim)
{
#if !defined REAPI
if(pev(killer, pev_team) == pev(victim, pev_team))
#else
if(get_member(killer, m_iTeam) == get_member(victim, m_iTeam))
#endif
return true
return false
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.