#help with skript db

1 messages · Page 1 of 1 (latest)

deep depot
#

what version of skript-db are you using

#

skript-db version?

#
on join:
    execute "INSERT INTO Users (uuid,name,lastjoin) VALUES (%uuid of player%,%name of player%,%rounded unix timestamp of now%) ON DUPLICATE KEY UPDATE name=VALUES(name),lastjoin=VALUES(lastjoin)" in {-sql}
#

this is how i did it to enter a new users details into a DB on join

#

not sure if that helps

#

edit that how you need and it should work

stark granite
deep depot
stark granite
#

LOL

deep depot
#

i think it would be set {_value} to {_output::id::1}

stark granite
#

wdym "still nothing"?

deep depot
#

remove the unsafe part of the execute

#

you are using the right versions

#

which do not need it

#

i use the same ones

#

just remove the set {_value} to {_output::id::1}

#

and do this

#

send "Mentionable setting value: %{_output::value::1}%" to player

mystic estuary
#

let me try that

deep depot
#

try that

#

because your column names are player_uuid, setting, value

#

arent they

#

so the table doesn't already exist?