Code:
function getitemname(p:player, t:item):
execute "select `itemname` from `getitemname` where `itemtype` = '%{_t}%' Limit 1" in {-sql} and store the result in {_return::*}
message "%{_return::itemname::1}%" to {_p}
message "%{_t}%" to {_p}
skript-db
I want to read the DB in the query by recognizing the item type, translate it, and print it out.
{_t} has a good block type
Why does {_return:itemname::1} appear as a null value...
In MySQL,
Code:
select `itemname` from `getitemname` where `itemtype` = 'dirt' Limit 1
I ask for your help