MySQL does not update me
#7

Quote:
Originally Posted by whadez
View Post
Code:
printf("UPDATE `USUARIOS` SET `NIVEL` = '%d', `DINERO` = '%d', `ASESINATOS` = '%d', `MUERTES` = '%d' WHERE `ID` = '%d' LIMIT 1", InfoU[playerid][pNivel], InfoU[playerid][pDinero], InfoU[playerid][pAsesinatos], InfoU[playerid][pMuertes], InfoU[playerid][ID]); 

mysql_format(Database, DB_Query, sizeof(DB_Query), "UPDATE `USUARIOS` SET `NIVEL` = '%d', `DINERO` = '%d', `ASESINATOS` = '%d', `MUERTES` = '%d' WHERE `ID` = '%d' LIMIT 1", 
InfoU[playerid][pNivel], InfoU[playerid][pDinero], InfoU[playerid][pAsesinatos], InfoU[playerid][pMuertes], InfoU[playerid][ID]); 
mysql_tquery(Database, DB_Query, "", "");
Send me the output message.
Thanks to you I noticed the problem, in my table of users when you register you create the table with the unique ID, in the printf it gives me in 0 when it would have to be in 1.
Reply


Messages In This Thread
MySQL does not update me - by Swankeh - 23.09.2017, 15:52
Re: MySQL does not update me - by BreakStore - 23.09.2017, 16:41
Re: MySQL does not update me - by whadez - 23.09.2017, 16:47
Re: MySQL does not update me - by Swankeh - 23.09.2017, 16:56
Re: MySQL does not update me - by whadez - 23.09.2017, 17:04
Re: MySQL does not update me - by Swankeh - 23.09.2017, 17:16
Re: MySQL does not update me - by Swankeh - 23.09.2017, 17:26
Re: MySQL does not update me - by whadez - 23.09.2017, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)