lundi 31 août 2015

Create table if not exists

Buenas, estaba comenzando a hacer un nuevo servidor, y cuando compilo me salen errores en la creación de la tabla, podría darme una mano? Aquí les dejo el código y los errores, desde ya muchas gracias.

PHP Code:

db_free_result(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 de oro` INTEGER NOT NULL, \
                                                                            `Dinero` INTEGER NOT NULL, \
                                                                            `Cuenta bancaria` INTEGER NOT NULL, \
                                                                            `Trabajo` INTEGER NOT NULL, \
                                                                            `Faccion` INTEGER NOT NULL, \
                                                                            `Rango faccion` INTEGER NOT NULL, \
                                                                            `Policia` INTEGER NOT NULL, \
                                                                            `Rango policia` INTEGER NOT NULL, \
                                                                            `Pos X` FLOAT NOT NULL, \
                                                                            `Pos Y` FLOAT NOT NULL, \
                                                                            `Pos Z` FLOAT NOT NULL, \
                                                                            `Pos R` FLOAT NOT NULL, \
                                                                            `Skin` INTEGER NOT NULL, \
                                                                            `Vida` FLOAT NOT NULL, \
                                                                            `Chaleco` FLOAT NOT NULL, \
                                                                            `Virtual World` INTEGER NOT NULL, \
                                                                            `Interior` INTEGER NOT NULL, \
                                                                            `Medicamentos` INTEGER NOT NULL, \
                                                                            `Crack` INTEGER NOT NULL, \
                                                                            `Materiales` INTEGER NOT NULL, \
                                                                            `Sancion` INTEGER NOT NULL, \
                                                                            `Tiempo sancion` INTEGER NOT NULL, \
                                                                            `Sanciones` INTEGER NOT NULL, \
                                                                            `Carcel` INTEGER NOT NULL, \
                                                                            `Tiempo carcel` INTEGER NOT NULL, \
                                                                            `Arrestos` INTEGER NOT NULL)"
)); 

Los errores:
Quote:

Untitled.pwn(74) : error 075: input line too long (after substitutions)
Untitled.pwn(75) : error 037: invalid string (possibly non-terminated string)
Untitled.pwn(75) : error 017: undefined symbol "CREATE"
Untitled.pwn(75) : error 017: undefined symbol "TABLE"
Untitled.pwn(75) : 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.


Aucun commentaire:

Enregistrer un commentaire