Witam. Pisałem już taki temat ale gdzieś mi uleciał. Problem jest taki że próbuję przełamać stringa w ten sposób:
formatex(q_command, 611, "CREATE TABLE IF NOT EXISTS `%s` (`nick` VARCHAR(48),`klasa` INT(2),`lvl` INT(3) DEFAULT 1,`exp` INT(9) DEFAULT 0,`int` INT(3) DEFAULT 0,`zdr` INT(3) DEFAULT 0,`wyt` INT(3) DEFAULT 0,`kon` INT(3) DEFAULT 0,`gra` INT(3) DEFAULT 0,`nie` INT(3) DEFAULT 0,`cel` INT(3) DEFAULT 0,`moc1` INT(6) DEFAULT 0,`moc2` INT(5) DEFAULT 0,`moc3` INT(3) DEFAULT 0, `m_dzien` INT(2) DEFAULT -1,`pro` INT(2) DEFAULT 0,\ \`zlo` INT(5) DEFAULT 0,`hon` INT(4) DEFAULT 0) DEFAULT CHARSET `utf8` COLLATE `utf8_general_ci`", g_sqlTable);
Po pierwszym \ nie oraz przed drugim \ nie ma żadnych spacji ani tabulatorów, a sypie errorami:
QTMCodMod.sma(1924) : error 075: input line too long (after substitutions) QTMCodMod.sma(1925) : error 037: invalid string (possibly non-terminated string) QTMCodMod.sma(1926) : warning 217: loose indentation QTMCodMod.sma(1926) : error 017: undefined symbol "_general_ci" QTMCodMod.sma(1926 -- 1928) : warning 215: expression has no effect
Co robię źle ?