[Problema] Error
#3

Quote:
Originally Posted by cesar_******
Посмотреть сообщение
1° cuantas de estas tienes en el gm
PHP код:
    mysql_function_query(g_Handle,"ALTER TABLE `Usuarios` ADD ( \
        `VW` int(11) NOT NULL, \
        `Skin` int(11) NOT NULL, \
        `Dinero` int(11) NOT NULL, \
        `Nivel` int(11) NOT NULL, \
        `Sexo` int(11) NOT NULL, \
        `Edad` int(11) NOT NULL, \
        `Pais` int(11) NOT NULL, \
        `Admin` int(11) NOT NULL, \
        `Vip` int(11) NOT NULL, \
        `Arma1` int(11) NOT NULL, \
        `Municion1` int(11) NOT NULL )"
false"SendQuery"""); 
2° dime como esta organizada tu db en la wed(la que uses) solo nombre como esta organizada nada mas.
ejemplo:

Nombre
Password
etc.
Tengo todo organizado segun su numero en la tabla:

pawn Код:
Hook:TABLA_OnGameModeInit()
{
    g_Handle = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
    mysql_function_query(g_Handle, "CREATE TABLE IF NOT EXISTS `Usuarios` ( \
        `ID` int(11) NOT NULL AUTO_INCREMENT, \
        `Nombre` varchar(24) NOT NULL, \
        `Password` varchar(129) NOT NULL, \
        `Registrado` int(11) NOT NULL, \
        `Email` varchar(36) NOT NULL, \
        `IP` varchar(16) NOT NULL, \
        `Vida` float NOT NULL, \
        `Chaleco` float NOT NULL, \
        `X` float NOT NULL, \
        `Y` float NOT NULL, \
        `Z` float NOT NULL, \
        `A` float NOT NULL, \
        `Interior` int(11) NOT NULL, \
        PRIMARY KEY (`ID`) )"
, false, "SendQuery", "");
       
    mysql_function_query(g_Handle,"ALTER TABLE `Usuarios` ADD ( \
        `VW` int(11) NOT NULL, \
        `Skin` int(11) NOT NULL, \
        `Dinero` int(11) NOT NULL, \
        `Nivel` int(11) NOT NULL, \
        `Sexo` int(11) NOT NULL, \
        `Edad` int(11) NOT NULL, \
        `Pais` int(11) NOT NULL, \
        `Admin` int(11) NOT NULL, \
        `Vip` int(11) NOT NULL, \
        `Arma1` int(11) NOT NULL, \
        `Municion1` int(11) NOT NULL )"
, false, "SendQuery", "");
        return 1;
}
Ami me anda bien la DB pero me lanza ese error y no quiero que en un futuro me provoque un gran problema.

PD: Los datos se cargan y guardan bien, pero cada vez que arranco el SV me tira ese error y e tratado de solucionarlo y nada el problema esta aqui:

pawn Код:
mysql_function_query(g_Handle,"ALTER TABLE `Usuarios` ADD ( \
        `VW` int(11) NOT NULL, \
        `Skin` int(11) NOT NULL, \
        `Dinero` int(11) NOT NULL, \
        `Nivel` int(11) NOT NULL, \
        `Sexo` int(11) NOT NULL, \
        `Edad` int(11) NOT NULL, \
        `Pais` int(11) NOT NULL, \
        `Admin` int(11) NOT NULL, \
        `Vip` int(11) NOT NULL, \
        `Arma1` int(11) NOT NULL, \
        `Municion1` int(11) NOT NULL )"
, false, "SendQuery", "");
Y como ya dije tengo todo bien organizado,ademas no creo que tenga que ver con otras funiones ya que la tabla se ejecuta en OnGameModeInit() por lo cual es lo que se ejecuta primero despues del main:

pawn Код:
main()
{
    mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
    mysql_debug(1);
    if(mysql_ping() == 1)
    {
        printf("[MYSQL]: Conexion Satisfactoria. - (DataBase: '%s')", SQL_DB);
        mysql_stat(stats); print(stats);
    }
    else
    {
        printf("[MYSQL]: Conexion Fallida. - (DataBase: '%s')", SQL_DB);
        SendRconCommand("gmx");
    }
    return 1;
}
Muchas gracias por tu ayuda.

Un saludo.
Reply


Messages In This Thread
[Problema] Error - by oOFotherOo - 17.11.2012, 01:22
Respuesta: [Problema] Error - by Parka - 17.11.2012, 02:29
Respuesta: [Problema] Error - by oOFotherOo - 17.11.2012, 04:01
Respuesta: [Problema] Error - by WCrimson - 17.11.2012, 04:15
Respuesta: [Problema] Error - by oOFotherOo - 17.11.2012, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)