2020-12-03, 04:17 PM
Hi, I have been trying to save a variable to mysql database, with this command:
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!
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!