[Error] MySQL Error OnQueryFinish
#1

Hola a todos, el problema que tengo es que al conectarme todo va bien , pero no me cargan las variables , solo en la base de datos me dice el nombre y la contraseсa, despues lo demas esta en 0 , al desconectarme del servidor tira un error raro , que se los dejare ahora aqui abajo , por lo que se es en OnQueryFinish , la GM es desde 0 , la hise con un tutorial de JustBored , les dejo los codigos.
OnQueryFinish
Код:
forward OnQueryFinish(resultid, extraid, ConnectionHandle);
public OnQueryFinish(resultid, extraid, ConnectionHandle)
{
    new Rows, Field, string[256];
    if(resultid != 0)
    {
        cache_get_data(Rows, Field);
    }
    switch(resultid)
    {
        case 1:
        {
            if(Rows == 1)
            {
                new content[20];
                cache_get_field_content(0, "Password", PlayerInfo[extraid][pPassword]);
                cache_get_field_content(0, "Score", content); PlayerInfo[extraid][pScore] = strval(content);
                cache_get_field_content(0, "Vida", content); PlayerInfo[extraid][pVida] = floatstr(content);
                cache_get_field_content(0, "Chaleco", content); PlayerInfo[extraid][pChaleco] = floatstr(content);
                cache_get_field_content(0, "Posx", content); PlayerInfo[extraid][pPosx] = floatstr(content);
                cache_get_field_content(0, "Posy", content); PlayerInfo[extraid][pPosy] = floatstr(content);
                cache_get_field_content(0, "Posz", content); PlayerInfo[extraid][pPosz] = floatstr(content);
                SetSpawnInfo(extraid,0,0, PlayerInfo[extraid][pPosx],PlayerInfo[extraid][pPosy],PlayerInfo[extraid][pPosz],0.0,0,0,0,0,0,0);
                SetPlayerScore(extraid,  PlayerInfo[extraid][pScore]);
                SetPlayerArmour(extraid, PlayerInfo[extraid][pChaleco]);
                SetPlayerHealth(extraid, PlayerInfo[extraid][pVida]);
                SetSpawnInfo(extraid,0,0, PlayerInfo[extraid][pPosx],PlayerInfo[extraid][pPosy],PlayerInfo[extraid][pPosz],0.0,0,0,0,0,0,0);
                SetPlayerScore(extraid,  PlayerInfo[extraid][pScore]);
                SetPlayerArmour(extraid, PlayerInfo[extraid][pChaleco]);
            }
            else if(!Rows)
            {
               //
            }
        }
        case 2:
        {
            if(Rows == 1)
            {
                new pName[24]; GetPlayerName(extraid, pName, 24);
                cache_get_field_content(0, "Password", PlayerInfo[extraid][pPassword]);
                format(string, sizeof(string), "El personaje %s estб registrado en la base de datos. Pon los datos para iniciar sesiуn:", pName);
                ShowPlayerDialog(extraid, LOGIN, DIALOG_STYLE_PASSWORD,"Login",string,"Enviar","Salir");
            }
            else if(!Rows)
            {
                new pName[24]; GetPlayerName(extraid, pName, 24);
                format(string, sizeof(string), "El jugador %s no estб registrado en el servidor, pon aquн la contraseсa para registrarlo:", pName);
                ShowPlayerDialog(extraid, REGISTRO, DIALOG_STYLE_PASSWORD,"Registro:",string,"Enviar","Salir");
            }
        }
    }
    return 1;
}
El Error que me dice.
Код:
[15:38:45] >> mysql_query_callback( Connection handle: 1 )
[15:38:45] Passing query UPDATE `usuarios` SET `Vida`='100.000000', `Chaleco`='0.000000', `Admin`='0', `Score`='0', `Posx`='0.000000', `Posy`='0.000000', `Posz`='-50.355438', `Edad`='0.000000', `Sexo`='', `Email`='' WHERE `N | ii
[15:38:45] CMySQLHandler::ProcessQueryThread() - Error will be triggered to OnQueryError()
[15:38:45] OnQueryError() - Called.
Les dejo una imagen del server-samp

Por si no se ve les dejo el link
Click Aqui para ver la imagen.
La versiуn que estoy usando actualmente de MySQL es R7 , tengo todo en perfecto estado lo que seria el plugin y el include , agradeceria que me lo solucionaran rapido ,gracias.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)