• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Command doesn't work.
#1
Hi, I have been trying to save a variable to mysql database, with this command:



Code:
CMD:ded(playerid, params[])

{

? ? new Query[256];

? ? Fondos[FondosFC] = 1000;

? ? format(Query, 200, "UPDATE `variableglobal` SET `FondosC`='%d'", Fondos[FondosFC]);

? ? mysql_function_query(Conecction, Query, true, "OnQueryFinish", "ii", 0, playerid);

? ? return 1;

}



The problem is that when I check in the phpmyadmin, the variable is at 0, that is, it was not saved with the command. Does anyone know what is wrong with the code? thanks!
  Reply


Messages In This Thread
Command doesn't work. - by Ryder Sixz - 2020-12-03, 04:17 PM
RE: Command doesn't work. - by Pinch - 2020-12-03, 06:07 PM
RE: Command doesn't work. - by Ryder Sixz - 2020-12-03, 07:47 PM
RE: Command doesn't work. - by DaZzY - 2020-12-08, 10:33 PM

Forum Jump: