mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2025-07-06 10:00:27 +02:00
Add print
This commit is contained in:
5
api.lua
5
api.lua
@ -40,7 +40,10 @@ function awards.tbv(tb,value,default)
|
||||
default = {}
|
||||
end
|
||||
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
|
||||
end
|
||||
if not tb[value] then
|
||||
|
Reference in New Issue
Block a user