18.10.2018, 00:30
hello, I would have a problem, I would like to understand why when I save the ammo with the weapon that is already present in MYSQL, instead of modifying the number of ammunition I create another string with the weapon + the additional ammunition.
Thanks to those who lose time for me <3
Код:
mysql_format(mysql, query, sizeof(query), "INSERT INTO weapon_house VALUES (%d, %d, %d) ON DUPLICATE KEY UPDATE `Ammo` = `Ammo`+'%d'", PlayerInfo[playerid][ID], weapon, inputtext[0], inputtext[0]); mysql_tquery(mysql, query);