Create table if not exists
#9

No se si importe mucho, pero he trabajado con SQLite y es un poco delicado eso cualquier cosa te deja de funcionar, te recomiendo que no dejes espacios en tus variables SQL.


EDIT: le cambie los nombre de las variables y funcionу.



PHP код:
db_query(jugadores, "CREATE TABLE IF NOT EXISTS datos(ID INTEGER PRIMARY KEY AUTOINCREMENT, \ 
Nombre VARCHAR(24) NOT NULL, \ 
Password VARCHAR(24) NOT NULL, \ 
Baneado INTEGER NOT NULL, \ 
Admin INTEGER NOT NULL, \ 
Nivel INTEGER NOT NULL, \ 
Experiencia INTEGER NOT NULL, \ 
Monedas INTEGER NOT NULL, \ 
Dinero INTEGER NOT NULL, \
Bancaria INTEGER NOT NULL, \ 
Trabajo INTEGER NOT NULL, \ 
Faccion INTEGER NOT NULL, \ 
Rangof INTEGER NOT NULL, \ 
Policia INTEGER NOT NULL, \ 
RangoP INTEGER NOT NULL, \ 
PosX FLOAT NOT NULL, \ 
PosY FLOAT NOT NULL, \ 
PosZ FLOAT NOT NULL, \ 
PosR FLOAT NOT NULL, \ 
Skin INTEGER NOT NULL, \ 
Vida FLOAT NOT NULL, \ 
Chaleco FLOAT NOT NULL, \ 
World INTEGER NOT NULL, \ 
Interior INTEGER NOT NULL, \ 
Medicamentos INTEGER NOT NULL, \ 
Crack INTEGER NOT NULL, \ 
Materiales INTEGER NOT NULL, \ 
Sancion INTEGER NOT NULL, \ 
TiempoS INTEGER NOT NULL, \ 
Sanciones INTEGER NOT NULL, \ 
Carcel INTEGER NOT NULL, \ 
TiempoC INTEGER NOT NULL, \ 
Arrestos INTEGER NOT NULL)"
); 
Reply


Messages In This Thread
Create table if not exists - by Ghost112397 - 01.09.2015, 02:03
Re: Create table if not exists - by SickAttack - 01.09.2015, 03:59
Respuesta: Re: Create table if not exists - by Ghost112397 - 01.09.2015, 04:18
Re: Create table if not exists - by SickAttack - 01.09.2015, 04:33
Respuesta: Re: Create table if not exists - by Ghost112397 - 01.09.2015, 04:42
Respuesta: Create table if not exists - by bm0z - 01.09.2015, 10:37
Respuesta: Create table if not exists - by [DOG]irinel1996 - 01.09.2015, 11:05
Respuesta: Create table if not exists - by DesingMyCry - 01.09.2015, 15:01
Respuesta: Create table if not exists - by Parka - 01.09.2015, 18:06
Re: Create table if not exists - by SickAttack - 01.09.2015, 21:03

Forum Jump:


Users browsing this thread: 1 Guest(s)