Posts: 115
Threads: 0
Joined: Mar 2018
Quote:
Originally Posted by Eripe
PHP код:
[10:54:28] [plugins/mysql] error #1064 while executing query "CREATE TABLE IF NOT EXISTS `ekwipunek`(`slot1nazwa` varbinary(30) NOT NULL,`slot1wartosc` int(10) NOT NULL,`slot1nazwa` nick(24) NOT NULL,) ENGINE = InnoDB CHARACTER SET=utf8": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'nick(24) NOT NULL,) ENGINE = InnoDB CHARACTER SET=utf8' at line 1
[10:54:28] [plugins/mysql] cache_delete: invalid cache id '0'
[10:55:02] [plugins/mysql] error #1054 while executing query "INSERT INTO bank (`uid`, `stan`, `nick`) VALUES (`0`,`0`,`RiP_eaK`)": Unknown column '0' in 'field list'
[10:55:02] [plugins/mysql] error #1146 while executing query "INSERT INTO ekwipunek (`slot1nazwa`, `slot1wartosc`,`nick`) VALUES ('', '0',`RiP_eaK`)": Table 'bazagm.ekwipunek' doesn't exist
|
what version do you have in mysql? test now
PHP код:
public OnGameModeInit()
{
//exemple to MySQL R41-4
SQL_ID = mysql_connect(...); // connection to the database
new Cache:result = mysql_query(SQL_ID,"CREATE TABLE IF NOT EXISTS `ekwipunek`(`slot1nazwa` varbinary(30) NOT NULL,`slot1wartosc` int(10) NOT NULL,`slot1nazwa` varbinary(30) NOT NULL) ENGINE = InnoDB CHARACTER SET=utf8");
cache_delete(result);
new Cache:result1 = mysql_query(SQL_ID,"CREATE TABLE IF NOT EXISTS `bank`(`uid` int(10) NOT NULL,`stan` int(10) NOT NULL,`nick` varbinary(24) NOT NULL) ENGINE = InnoDB CHARACTER SET=utf8");
cache_delete(result1);
return true;
}