From 9bf495aa5c9d8e0d7a6c772904eb8342ec78fbcf Mon Sep 17 00:00:00 2001 From: BulgaRpl <69915160+BulgaRpl@users.noreply.github.com> Date: Tue, 21 Mar 2023 18:59:12 +0100 Subject: [PATCH] Fix for 0.00 values (bank and money) Corrected base, previously it was possible to duplicate money when using 0.00 values. --- redemrp.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redemrp.sql b/redemrp.sql index ba4919d..23b18b7 100644 --- a/redemrp.sql +++ b/redemrp.sql @@ -3,8 +3,8 @@ CREATE TABLE `characters` ( `identifier` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL, `characterid` int(11) DEFAULT 0, `citizenid` varchar(10) COLLATE utf8mb4_bin NOT NULL, - `money` int(11) DEFAULT 0, - `bank` int(11) DEFAULT 0, + `money` double(11,2) DEFAULT 0.00, + `bank` double(11,2) DEFAULT 0.00, `job` varchar(50) COLLATE utf8mb4_bin DEFAULT 'unemployed', `firstname` varchar(50) COLLATE utf8mb4_bin DEFAULT 'first', `lastname` varchar(50) COLLATE utf8mb4_bin DEFAULT 'last', @@ -100,4 +100,4 @@ ALTER TABLE `stashes` ALTER TABLE `user_inventory` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -COMMIT; \ No newline at end of file +COMMIT;