From 9adcb3c73a8d0e7ecfe66b30da630c6c2e67f03a Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 27 Aug 2016 17:08:46 -0400 Subject: Moved prayers to their own system --- gamemode/shared.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gamemode/shared.lua') diff --git a/gamemode/shared.lua b/gamemode/shared.lua index 4826b29..c69113f 100644 --- a/gamemode/shared.lua +++ b/gamemode/shared.lua @@ -11,4 +11,15 @@ GM.Author = "Alexander \"Apickx\" Pickering" GM.Email = "apickx@cogarr.org" GM.Website = "cogarr.net" -print("Hello from shared.lua!") +--Some global functions that are helpful +function printf(fmt, ...) + print(string.format(fmt,...)) +end + +--Add a thing to report errors to a master server +--TODO:Set up a master server to collect errors for correction +local olderr = error +function error(str) + print("I got an error!") + olderr(str) +end -- cgit v1.2.3-70-g09d2