From bb814f6eae1291475a64310cd8f1cc518b035a40 Mon Sep 17 00:00:00 2001 From: Evil Puncker Date: Wed, 13 Oct 2021 14:18:43 -0300 Subject: [PATCH] Fixed variable type for powergamers script (#492) exp history should be able to store negative values, yes online time shouldn't --- .../globalevent powergamers/powergamers.lua | 34 +++++++++---------- Lua/TFS_10/revscriptsys/powergamers.lua | 34 +++++++++---------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/Lua/TFS_10/globalevent powergamers/powergamers.lua b/Lua/TFS_10/globalevent powergamers/powergamers.lua index 3a8c9a0..8a0e5a6 100644 --- a/Lua/TFS_10/globalevent powergamers/powergamers.lua +++ b/Lua/TFS_10/globalevent powergamers/powergamers.lua @@ -25,23 +25,23 @@ end -- SQL Query to execute: -- --[[ -ALTER TABLE `znote_players` ADD `exphist_lastexp` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist1` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist2` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist3` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist4` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist5` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist6` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist7` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `onlinetimetoday` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime1` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime2` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime3` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime4` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime5` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime6` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime7` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetimeall` BIGINT NOT NULL DEFAULT '0'; +ALTER TABLE `znote_players` ADD `exphist_lastexp` BIGINT NOT NULL DEFAULT '0', +ADD `exphist1` BIGINT NOT NULL DEFAULT '0', +ADD `exphist2` BIGINT NOT NULL DEFAULT '0', +ADD `exphist3` BIGINT NOT NULL DEFAULT '0', +ADD `exphist4` BIGINT NOT NULL DEFAULT '0', +ADD `exphist5` BIGINT NOT NULL DEFAULT '0', +ADD `exphist6` BIGINT NOT NULL DEFAULT '0', +ADD `exphist7` BIGINT NOT NULL DEFAULT '0', +ADD `onlinetimetoday` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime1` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime2` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime3` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime4` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime5` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime6` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime7` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetimeall` BIGINT UNSIGNED NOT NULL DEFAULT '0'; ]]-- -- after that execute: -- diff --git a/Lua/TFS_10/revscriptsys/powergamers.lua b/Lua/TFS_10/revscriptsys/powergamers.lua index 289e9a4..ed9e517 100644 --- a/Lua/TFS_10/revscriptsys/powergamers.lua +++ b/Lua/TFS_10/revscriptsys/powergamers.lua @@ -25,23 +25,23 @@ end -- SQL Query to execute: -- --[[ -ALTER TABLE `znote_players` ADD `exphist_lastexp` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist1` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist2` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist3` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist4` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist5` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist6` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `exphist7` BIGINT UNSIGNED NOT NULL DEFAULT '0', -ADD `onlinetimetoday` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime1` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime2` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime3` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime4` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime5` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime6` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetime7` BIGINT NOT NULL DEFAULT '0', -ADD `onlinetimeall` BIGINT NOT NULL DEFAULT '0'; +ALTER TABLE `znote_players` ADD `exphist_lastexp` BIGINT NOT NULL DEFAULT '0', +ADD `exphist1` BIGINT NOT NULL DEFAULT '0', +ADD `exphist2` BIGINT NOT NULL DEFAULT '0', +ADD `exphist3` BIGINT NOT NULL DEFAULT '0', +ADD `exphist4` BIGINT NOT NULL DEFAULT '0', +ADD `exphist5` BIGINT NOT NULL DEFAULT '0', +ADD `exphist6` BIGINT NOT NULL DEFAULT '0', +ADD `exphist7` BIGINT NOT NULL DEFAULT '0', +ADD `onlinetimetoday` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime1` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime2` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime3` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime4` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime5` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime6` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetime7` BIGINT UNSIGNED NOT NULL DEFAULT '0', +ADD `onlinetimeall` BIGINT UNSIGNED NOT NULL DEFAULT '0'; ]]-- -- after that execute: --