Solved.
Good evening.
I'm trying to return a value from a column, but all I get is the name of the column.
What I want to do is: I have a database called api, with the table players with a column call "logged". It will be a boolean, true/false. This is a way I can check if the player is logged on the server or not.
The code is:
Is there anything I'm not getting right?
Skript version: 2.2
Using skript-db
Thank you.
Good evening.
I'm trying to return a value from a column, but all I get is the name of the column.
What I want to do is: I have a database called api, with the table players with a column call "logged". It will be a boolean, true/false. This is a way I can check if the player is logged on the server or not.
The code is:
code_language.skript:
on load:
set {sql} to the database "mysql:.."
command /dbtest:
trigger:
execute "SELECT logado FROM jogadores" in {sql} and store the result in {_output::*}
broadcast "%{_output::*}%"
Is there anything I'm not getting right?
Skript version: 2.2
Using skript-db
Thank you.