diff options
Diffstat (limited to 'gamemode/shared.lua')
| -rw-r--r-- | gamemode/shared.lua | 13 |
1 files changed, 12 insertions, 1 deletions
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 |
