problem with query SQLite
#1

I have a query problem.

pawn Код:
new DBResult:Resultado;
new query[350];
format(query,sizeof(query),"INSERT INTO (`uNombre`,`uClave`,`uIP`,`uAdmin`,`uVIP`,`uPuntos`,`uMuertes`,`uSancion`,`uPosX`,`uPosY`,`uPosZ`,`uPosA`) VALUES ('%q','%q','%q',0,0,0,0,0,0.0,0.0,0.0,0.0)",NombreJugador(playerid),Jugador[playerid][pClave],IP);
Resultado = db_query(dbh,query);
the query not insert the dates./
the query does not insert data.

Thanks, sorry for my bad english.
Reply
#2

You have to specify in which table you want to add the data to:
Код:
INSERT INTO table_name (column_names) VALUES (values);
Reply
#3

Thank you, that mine dumbest mistake.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)