mysql_query("CREATE TABLE IF NOT EXISTS `users`(`id` INT NULL AUTO_INCREMENT,`username` VARCHAR(50) NOT NULL,`password` INT NOT NULL,`month` INT(2) NOT NULL,`day` INT(2) NOT NULL,`year` INT(4) NOT NULL,`origin` VARCHAR(50) NOT NULL,`payday` INT NOT NULL,`money` INT NOT NULL,`bankmoney` INT NOT NULL,`factionid` INT(2) NOT NULL,`factionranknum` INT(2) NOT NULL,`factionrank` VARCHAR(50) NOT NULL,`jobid` INT(2) NOT NULL,`level` INT(2) NOT NULL,`alevel` INT (1) NOT NULL,`phone` INT NOT NULL,PRIMARY KEY(`id`))");
NPP_SAVE: C:\Users\Lazri\Desktop\samp03dsvr_R2_win32\gamemodes\vb-rp.pwn
CD: C:\Users\Lazri\Desktop\samp03dsvr_R2_win32\gamemodes
Current directory: C:\Users\Lazri\Desktop\samp03dsvr_R2_win32\gamemodes
"C:\Users\Lazri\Desktop\samp03dsvr_R2_win32\pawno\pawncc.exe" "vb-rp.pwn"
Process started >>>
C:\Users\Lazri\Desktop\samp03dsvr_R2_win32\pawno\include\sscanf.inc(139) : warning 219: local variable "id" shadows a variable at a preceding level
vb-rp.pwn(166) : error 075: input line too long (after substitutions)
vb-rp.pwn(167) : error 037: invalid string (possibly non-terminated string)
vb-rp.pwn(167) : error 017: undefined symbol "CREATE"
vb-rp.pwn(167) : error 017: undefined symbol "IF"
vb-rp.pwn(167) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
<<< Process finished.
================ READY ================
i still dont think thats the problem!!
i have querys upto around 1000 chars, this is a TEXT REPLACEMENT issue, like you defined something #define SomeString SomeReallyLongCodeHere then in your code when it replaces SomeString your code is over 256 chars and gives this error, I could be wrong...Wouldnt be the first time and most likely not the last |
new string[512];
format(string, sizeof(string), "CREATE TABLE IF NOT EXISTS `users`(`id` INT NULL AUTO_INCREMENT,`username` VARCHAR(50) NOT NULL,`password` INT NOT NULL,`month` INT(2) NOT NULL,`day` INT(2) NOT NULL,`year` INT(4) NOT NULL,`origin` VARCHAR(50) NOT NULL,`payday` INT NOT NULL,`money` INT NOT NULL,`bankmoney` INT NOT NULL,`factionid` INT(2) NOT NULL,`factionranknum` INT(2) NOT NULL,`factionrank` VARCHAR(50) NOT NULL,`jobid` INT(2) NOT NULL,`level` INT(2) NOT NULL,`alevel` INT (1) NOT NULL,`phone` INT NOT NULL,PRIMARY KEY(`id`))");
mysql_query(string);