SA-MP Forums Archive
[Ayuda]: No Me Inserta Los Datos Sqlite. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Ayuda]: No Me Inserta Los Datos Sqlite. (/showthread.php?tid=638174)



[Ayuda]: No Me Inserta Los Datos Sqlite. - Marshmello - 28.07.2017

Que Tal Chico, Estoy Haciendo Una GM Sin Base y Estoy Haciendo Sistema y Otras Cosas Mas.
Bueno El Problema Es Al Registrase No Me Inserta Los Datos En La Base De Datos.

Aqui El Codigo:

PHP код:
    if(dialogid == DIALOGO_REGISTRO)
    {
        if(!
response) return Kick(playerid);
        if(
response)
        {
            if(!
strlen(inputtext))
                return 
ShowPlayerDialog(playeridDIALOGO_REGISTRODIALOG_STYLE_PASSWORD"{FFFFFF}REGISTRO - PLAYER{00C0FF}ZONE""{FFFFFF}Ingresa Una Contraseсa Para Tu Cuenta: (3 - 20 Caracteres)""REGISTRAR","SALIR");
            new 
Query[480], DBResultResultadohasspass[129], yearmonthdayhourminutesecond;
            
getdate(year,month,day);
            
gettime(hour,minute,second);
            
WP_Hash(hasspass129inputtext);
            
            
format(Cuenta[playerid][RegDate], 32"%d/%d/%d"year,month,day);
            
format(Cuenta[playerid][LastTime], 50"%d/%d/%d/%d:%d:%d"year,month,day,hour,minute,second);
            
            
format(Querysizeof(Query), " INSERT INTO `USERS` (`NAME`,`PASSWORD`,`USERIP`,`REGDATE`,`LASTTIME`,`SCORE`,`DINERO`,`ADMIN`,`VIP`,`KILLS`,`DEATHS`,`NIVEL`,`COINS`,`EXPERIENCIA`,`HS`,`SP`,`DUELO`,`DERBY`,`RACE`,`SKIN`,`TURBO`,`JUMP`,`AUTOFIX`) VALUES ('%q','%q','%q','%q','%q','0','0','0','0','0','0','0','0','%f','0','0','0','0','0','0','0','0','0')",
            
Nombre(playerid), hasspassPlayerIP(playerid), Cuenta[playerid][RegDate], Cuenta[playerid][LastTime], Cuenta[playerid][Experiencia]);
            
db_query(PZFQuery);
            
            
Resultado db_query(PZF"SELECT last_insert_rowid()");
            
Cuenta[playerid][UserID] = db_get_field_int(Resultado);
            
db_free_result(Resultado);
            
            
GivePlayerMoneyEx(playerid1000);
            
SetPlayerScoreEx(playerid1000);
            
ShowPlayerDialog(playeridDIALOGO_BLANKDIALOG_STYLE_MSGBOX"{FFFFFF}REGISTRO - PLAYER{00C0FF}ZONE""\n\n{FFFFFF}Gracias Por Registrarte En El Servidor y Por Eso Te Estamos Regalando\n{00C0FF}$1000 {FFFFFF}y {00C0FF}1000 {FFFFFF}De Score Para Iniciar En El Servidor\n\n""Aceptar""");
        }
    }