←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

Za długa linijka z tworzeniem tabeli sql

  • +
  • -
kijkol - zdjęcie kijkol 02.02.2013

Witam.
Otóż mam problem, a mianowicie chciałem dodać zapis kamieni do sql zamiast nvault w diablo by Stachu.

Przy kodzie:

formatex(q_command, 511, "CREATE TABLE IF NOT EXISTS `%s` (`nick` VARCHAR(48),`ip` VARCHAR(32),`sid` VARCHAR(32),`klasa` INT(2),`lvl` INT(3) DEFAULT 1,`exp` INT(9) DEFAULT 0,`str` INT(3) DEFAULT 0,`int` INT(3) DEFAULT 0,`dex` INT(3) DEFAULT 0,`pak` INT(3) DEFAULT 0,`agi` INT(3) DEFAULT 0,`kas` INT(3) DEFAULT 0,\
`dam` INT(3) DEFAULT 0,`men` INT(3) DEFAULT 0,`mis` INT(3) DEFAULT 0,`art` INT(3) DEFAULT 0,`wyt` INT(3) DEFAULT 0,`k` INT(3) DEFAULT 0) DEFAULT CHARSET `utf8` COLLATE `utf8_general_ci`",g_sqlTable);


// D:\Inne\pluginy\compiler\diablostach2.sma(739) : error 075: input line too long (after substitutions)

A przy :


formatex(q_command, 511, "CREATE TABLE IF NOT EXISTS `%s` (`nick` VARCHAR(48),`ip` VARCHAR(32),`sid` VARCHAR(32),`klasa` INT(2),`lvl` INT(3) DEFAULT 1,`exp` INT(9) DEFAULT 0,`str` INT(3) DEFAULT 0,`int` INT(3) DEFAULT 0,`dex` INT(3) DEFAULT 0,`pak` INT(3) DEFAULT 0,`agi` INT(3) DEFAULT 0,`kas` INT(3) DEFAULT 0,\
`dam` INT(3) DEFAULT 0,`men` INT(3) DEFAULT 0,`mis` INT(3) DEFAULT 0,`art` INT(3) DEFAULT 0,`wyt` INT(3) DEFAULT 0,`kam` INT(3) DEFAULT 0) DEFAULT CHARSET `utf8` COLLATE `utf8_general_ci`",g_sqlTable);




// D:\Inne\pluginy\compiler\diablostach2.sma(739) : error 075: input line too long (after substitutions)
// D:\Inne\pluginy\compiler\diablostach2.sma(740) : error 017: undefined symbol "g_sqlTab"
// D:\Inne\pluginy\compiler\diablostach2.sma(741) : error 017: undefined symbol "le"
// D:\Inne\pluginy\compiler\diablostach2.sma(741) : error 088: number of arguments does not match definition
// D:\Inne\pluginy\compiler\diablostach2.sma(2154) : warning 211: possibly unintended assignment


Jak można to zrobić, żeby nie była zby długa linijka ?
Odpowiedz

  • +
  • -
Kewin. (ZeZ) - zdjęcie Kewin. (ZeZ) 15.02.2013

Jaka to wersja diablomoda?
Odpowiedz