damy rade coś z tym zrobić ?
Blad QueryCreateTable() (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
a to jest wycinek z pluginu
public plugin_cfg(){
SqlConnection = SQL_MakeDbTuple(host,user,pass,db);
new QueryCache[1024];
formatex(QueryCache,1023,"CREATE TABLE IF NOT EXISTS `cod_godziny` (`nick` VARCHAR(30) NOT NULL,`sid` VARCHAR(30) NOT NULL,`czas` INT(20), PRIMARY KEY (`sid`)");
SQL_ThreadQuery(SqlConnection,"QueryCreateTable",QueryCache);
}
public QueryCreateTable(iFailState,Handle:hQuery,szError[],iError,iData[],iDataSize,Float:flQueueTime) {
switch(iFailState) {
case TQUERY_CONNECT_FAILED: { log_amx("Blad w polaczeniu z baza (%i): %s", iError, szError); }
case TQUERY_QUERY_FAILED: { log_amx("Blad QueryCreateTable() (%i): %s", iError, szError); }
default: { }
}
}
Użytkownik olek0017 edytował ten post 03.10.2011 16:20