Fix playern variable bug

This commit is contained in:
Rubenwardy
2013-11-12 19:33:19 +00:00
parent 3a0bc67d1b
commit 6387bd1d9e
2 changed files with 9 additions and 7 deletions

View File

@ -35,10 +35,11 @@ end
-- A table of award definitions
awards.def = {}
function awards.tbv(tb,value,default)
if not default then
default = {}
end
function awards.tbv(tb,value)
awards.tbv_default(tb,value,{})
end
function awards.tbv_default(tb,value,default)
if not tb or type(tb) ~= "table" then
if not value then
value = "[NULL]"