Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Deathrun Stats in file


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
33 odpowiedzi w tym temacie

#1 qwa123qq

    Początkujący

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:15
  • Imię:qwa
  • Lokalizacja:UK
Offline

Napisano 20.08.2011 19:02

Czy można nvault lub wersję pliku zapisać?
Ja jestem za pomocą Google Translate, mam nadzieję, można zrozumieć.

Can you make a nvault or file save version?
I am using google translate, I hope you can understand.
  • +
  • -
  • 0

#2 R3X

    Godlike

  • Przyjaciel

Reputacja: 2 987
Godlike

  • Postów:4 248
  • Lokalizacja:Nie
Offline

Napisano 20.08.2011 19:09

file saving already exists, try this settings

* fixed
;SQLite
amx_drstats_host ""
amx_drstats_user ""
amx_drstats_pass ""
amx_drstats_db "my_database_in_file.db"

sqlite module is required , make sure its enabled in your modules.ini and forgot about WWW stats (for now)
  • +
  • -
  • 0

#3 qwa123qq

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:15
  • Imię:qwa
  • Lokalizacja:UK
Offline

Napisano 20.08.2011 19:31

Where find this?
  • +
  • -
  • 0

#4 R3X

    Godlike

  • Przyjaciel

Reputacja: 2 987
Godlike

  • Postów:4 248
  • Lokalizacja:Nie
Offline

Napisano 20.08.2011 19:33

amxmodx/configs/modules.ini

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SQL Modules usually need to be enabled manually ;;
;; You can have any number on at a time.  Use      ;;
;;  amx_sql_type in sql.cfg to specify the default ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;mysql
sqlite

  • +
  • -
  • 0

#5 qwa123qq

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:15
  • Imię:qwa
  • Lokalizacja:UK
Offline

Napisano 20.08.2011 19:37

I mean I have changed like this.
public plugin_init() {
	state mysql;
	
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_dictionary("deathrun_stats.txt");
	
	register_cvar("amx_drstats_host", "deathrun_timer.db");
	register_cvar("amx_drstats_user", "");
	register_cvar("amx_drstats_pass", "");
	register_cvar("amx_drstats_db", "");
But it still try to connect to sql db.
  • +
  • -
  • 0

#6 R3X

    Godlike

  • Przyjaciel

Reputacja: 2 987
Godlike

  • Postów:4 248
  • Lokalizacja:Nie
Offline

Napisano 20.08.2011 19:55

made stop&start serwer? simple restart could not affect this changes
  • +
  • -
  • 0

#7 qwa123qq

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:15
  • Imię:qwa
  • Lokalizacja:UK
Offline

Napisano 20.08.2011 20:05

I have tried to restart server, but still same.
L 08/21/2011 - 03:03:24: Info (map "plugins_test_map") (file "addons/amxmodx/logs/error_20110821.log")
L 08/21/2011 - 03:03:24: [AMXX] Plugin ("deathrun_stats.amxx") is setting itself as failed.
L 08/21/2011 - 03:03:24: [AMXX] Plugin says: Cant connect to database
L 08/21/2011 - 03:03:24: [AMXX] Run time error 1 (plugin "deathrun_stats.amxx") - forced exit

  • +
  • -
  • 0

#8 R3X

    Godlike

  • Przyjaciel

Reputacja: 2 987
Godlike

  • Postów:4 248
  • Lokalizacja:Nie
Offline

Napisano 20.08.2011 20:12

AMXX cant save a pointed file, create it by own (empty one) and put into server
  • +
  • -
  • 0

#9 qwa123qq

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:15
  • Imię:qwa
  • Lokalizacja:UK
Offline

Napisano 20.08.2011 20:16

You mean this AMXX must use sql?
If no, it can't work?
  • +
  • -
  • 0

#10 Hiroshima

    Godlike

  • Przyjaciel

Reputacja: 1 327
Godlike

  • Postów:4 984
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Málaga
Offline

Napisano 20.08.2011 20:17

no.... just like R3X said, create an empty file (deathrun_timer.db) and place it into your data folder and it should work..
  • +
  • -
  • 0

#11 qwa123qq

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:15
  • Imię:qwa
  • Lokalizacja:UK
Offline

Napisano 20.08.2011 20:21

I create a file call "deathrun_timer.db" and put it into "addons\amxmodx\data" and "addons\amxmodx\data\sqlite3" still show error :?
  • +
  • -
  • 0

#12 Hiroshima

    Godlike

  • Przyjaciel

Reputacja: 1 327
Godlike

  • Postów:4 984
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Málaga
Offline

Napisano 20.08.2011 20:25

type those cvars in your sql.cfg and restart the server:

amx_drstats_host "deathrun_timer.db"
amx_drstats_user ""
amx_drstats_pass ""
amx_drstats_db ""

  • +
  • -
  • 0

#13 R3X

    Godlike

  • Przyjaciel

Reputacja: 2 987
Godlike

  • Postów:4 248
  • Lokalizacja:Nie
Offline

Napisano 20.08.2011 20:25

register_cvar("amx_drstats_host", "deathrun_timer.db");
it mean cstrike/deathrun_timer.db

make it
register_cvar("amx_drstats_host", "addons/amxmodx/data/deathrun_timer.db");
or sth
  • +
  • -
  • 1

#14 qwa123qq

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:15
  • Imię:qwa
  • Lokalizacja:UK
Offline

Napisano 20.08.2011 20:30

See the pic, it seems cannot read the dir.

Załączone miniatury

  • Image 166.jpg

Użytkownik qwa123qq edytował ten post 20.08.2011 20:31

  • +
  • -
  • 0

#15 R3X

    Godlike

  • Przyjaciel

Reputacja: 2 987
Godlike

  • Postów:4 248
  • Lokalizacja:Nie
Offline

Napisano 20.08.2011 20:37

my bad :/ hostname buffer is only 31 chars size, so your addons/..../ filename is too long and not used as SQLite file

and not hostname but dbname
register_cvar("amx_drstats_host", "");
register_cvar("amx_drstats_user", "");
register_cvar("amx_drstats_pass", "");
register_cvar("amx_drstats_db", "deathrun_timer.db");

  • +
  • -
  • 0

#16 Hiroshima

    Godlike

  • Przyjaciel

Reputacja: 1 327
Godlike

  • Postów:4 984
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Málaga
Offline

Napisano 20.08.2011 20:41

comment mysql module in your modules.ini and simply place this file that you created before in your /cstrike directory and make sure that is writeable
  • +
  • -
  • 0

#17 qwa123qq

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:15
  • Imię:qwa
  • Lokalizacja:UK
Offline

Napisano 20.08.2011 20:45

Still error :'(
Even add the dir.

I find out that the plugin auto create the deathrun_timer.db in my cstrike folder.
But still show same error.

Użytkownik qwa123qq edytował ten post 20.08.2011 20:47

  • +
  • -
  • 0

#18 R3X

    Godlike

  • Przyjaciel

Reputacja: 2 987
Godlike

  • Postów:4 248
  • Lokalizacja:Nie
Offline

Napisano 20.08.2011 20:47

give us current cvar values and result of

amx_showrcon meta list


  • +
  • -
  • 0

#19 Hiroshima

    Godlike

  • Przyjaciel

Reputacja: 1 327
Godlike

  • Postów:4 984
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Málaga
Offline

Napisano 20.08.2011 20:55

try this: Załączony plik  deathrun_stats.amxx   40,82 KB  12 Ilość pobrań

  • +
  • -
  • 0

#20 qwa123qq

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:15
  • Imię:qwa
  • Lokalizacja:UK
Offline

Napisano 20.08.2011 20:58

meta list reminder me that I forgot to uncomment sqlite in modules.ini.
My problem is solve now :-)
Thank R3X and hiroshima!

If I want show the map record holder and top5 forever what should I do?

Użytkownik qwa123qq edytował ten post 20.08.2011 21:01

  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych