←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

Nowe statystyki - nie robi miejsca w bazie

Locked

  • +
  • -
ZetWu's Photo ZetWu 10.12.2010

Witam.
Korzystając z tego poradnika dodałem nową statystykę - armor.
Kompiluje się dobrze lecz nie robi mi miejsca w bazie. Chodzi mi o "arm" tak jak jest "dex", "str", "int" itp.
Posted Image

Proszę o pomoc.
Nakierowanie mnie co jest źle (jak na moje oko to niby wszystko dobrze), jak to zrobić.
Załączam .sma

Pozdrawiam :)

Attached Files

Quote

MaDaFaKa's Photo MaDaFaKa 10.12.2010

Łapaj, nie zrobiłeś miejsca w bazie.
Wystarczyło zmienić tą linijkę:

format(q_command,511,"CREATE TABLE IF NOT EXISTS `%s` ( `nick` VARCHAR( 64 ),`ip` VARCHAR( 64 ),`sid` VARCHAR( 64 ), `klasa` integer( 2 ) , `lvl` integer( 3 ) DEFAULT 1, `exp` integer( 9 ) DEFAULT 0,  `str` integer( 3 ) DEFAULT 0, `int` integer( 3 ) DEFAULT 0, `dex` integer( 3 ) DEFAULT 0, `agi` integer( 3 ) DEFAULT 0 )",g_sqlTable)

Na:

format(q_command,511,"CREATE TABLE IF NOT EXISTS `%s` ( `nick` VARCHAR( 64 ),`ip` VARCHAR( 64 ),`sid` VARCHAR( 64 ), `klasa` integer( 2 ) , `lvl` integer( 3 ) DEFAULT 1, `exp` integer( 9 ) DEFAULT 0,  `str` integer( 3 ) DEFAULT 0, `int` integer( 3 ) DEFAULT 0, `dex` integer( 3 ) DEFAULT 0, `agi` integer( 3 ) DEFAULT 0 ), `arm` integer( 3 ) DEFAULT 0 )",g_sqlTable)

Attached Files


Edited by MaDaFaKa, 10.12.2010 20:03.
Quote
Locked