Git Product home page Git Product logo

csstatsx-sql's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

csstatsx-sql's Issues

Вопрос.

Привет, хотел узнать для чего нужны таблици h_0 - h_7 . Что в них записывается ?

SQL not works sometimes

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?

get_stats2_sql() returns wrong SteamID and wrong stats2 values

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

Отсутствует csstats_weapon.sql для самостоятельного создания таблиц (если csstats_sql_create_db задано в "0").

Фикс проверки на TD/TK

Старая версия функции, которая выполняла проверку неверно, и, в последствии, не сохраняло данные в колонки с 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
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.