SQLite - Create multiple tables in db
#8

Thx, i fix this error. Now work ^^

Need help with storage of data, for example "money". My code:

Code:
format(string, sizeof(string), "UPDATE `DINERO` SET `EFECTIVO` = '%s' WHERE NOMBRE= '%s'", GetPlayerMoney(playerid), DB_Escape(NombrePersonaje(playerid)));
	db_free_result(db_query(Sqlite, string));
But in db save this :S



Same error in skin:

Code:
format(string, sizeof(string), "UPDATE `PERSONAJES` SET `SKIN` = '%s' WHERE NOMBRE= '%s'", GetPlayerSkin(playerid), DB_Escape(NombrePersonaje(playerid)));
	db_free_result(db_query(Sqlite, string));
In db:



-----------------------------------------------------------------------------------------------------

My db code:

Code:
CREATE TABLE IF NOT EXISTS `CUENTAS` (`NOMBRE` VARCHAR(45) NOT NULL DEFAULT '', `PASSWORD` VARCHAR(45) DEFAULT 0, `ACCESLEVEL` TINYINT NOT NULL DEFAULT 0, `ESTADO` VARCHAR(3) DEFAULT 0, `IP` CHAR(15) NULL DEFAULT NULL)


CREATE TABLE IF NOT EXISTS `PERSONAJES` (`NOMBRE` VARCHAR(45), `PUNTOS` SMALLINT(5) DEFAULT 0, `KARMA` SMALLINT(5) DEFAULT 0, `POSX` FLOAT DEFAULT 0.0, `POSY` FLOAT DEFAULT 0.0, `POSZ` FLOAT DEFAULT 0.0, `SKIN` SMALLINT(3) DEFAULT 0)

CREATE TABLE IF NOT EXISTS `DINERO` (`NOMBRE` VARCHAR(45), `EFECTIVO` INT UNSIGNED DEFAULT NULL, `ELECTRONICO` INT UNSIGNED DEFAULT NULL)
Reply


Messages In This Thread
SQLite - Create multiple tables in db - by u3games - 12.04.2013, 23:50
Re: SQLite - Create multiple tables in db - by Jefff - 12.04.2013, 23:53
Respuesta: Re: SQLite - Create multiple tables in db - by u3games - 12.04.2013, 23:54
Re: SQLite - Create multiple tables in db - by Jefff - 13.04.2013, 00:06
Respuesta: Re: SQLite - Create multiple tables in db - by u3games - 13.04.2013, 00:12
Re: SQLite - Create multiple tables in db - by Jefff - 13.04.2013, 00:26
Re: SQLite - Create multiple tables in db - by Lorenc_ - 13.04.2013, 00:33
Respuesta: Re: SQLite - Create multiple tables in db - by u3games - 13.04.2013, 11:13
Respuesta: SQLite - Create multiple tables in db - by u3games - 13.04.2013, 13:26

Forum Jump:


Users browsing this thread: 1 Guest(s)