mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2024-12-28 19:50:37 +01:00
Add print
This commit is contained in:
parent
b555a59801
commit
9117031f2a
5
api.lua
5
api.lua
@ -40,7 +40,10 @@ function awards.tbv(tb,value,default)
|
|||||||
default = {}
|
default = {}
|
||||||
end
|
end
|
||||||
if not tb or type(tb) ~= "table" then
|
if not tb or type(tb) ~= "table" then
|
||||||
print("Table is null, or not a table!")
|
if not value then
|
||||||
|
value = "[NULL]"
|
||||||
|
end
|
||||||
|
print("Table '"..value.."' is null, or not a table!")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if not tb[value] then
|
if not tb[value] then
|
||||||
|
Loading…
Reference in New Issue
Block a user