Discord Thread Can't compare 'set {_filter} to mongosk filter where "playerName"' with a text

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
0
0
The skUnity Discord
discord.gg
Addon: MongoSK 2.2.1
Server version/ Skript version: PandaSpigot/dev37c
Error:
code_language.skript:
Can't compare 'set {_filter} to mongosk filter where "playerName"' with a text (sync.sk, line 26: set {_filter} to mongosk filter where "playerName" is "%{_p}%"')

Code:

...
function importdatabasesyncuser(p: player):
    set {_filter} to mongosk filter where "playerName" is "%{_p}%"
    set {_doc} to first mongo document with filter {_filter} from collection {mongoplayersdata}
    set {karma.%{_p}%} to mongo value "playerKarma" of {_doc}
    set {db_settings_fly.%{_p}%} to mongo value "settingFly" of {_doc}
    set {db_settings_vanish.%{_p}%} to mongo value "settingVanish" of {_doc}
    set {db_settings_autoqueue.%{_p}%} to mongo value "settingAutoQueue" of {_doc}
    set {db_settings_joinmsg.%{_p}%} to mongo value "settingJoinMessages" of {_doc}
    set {firstjoin.%{_p}%} to mongo value "playerJoined" of {_doc}
    $ thread
    update mongo document {_doc} of {mongoplayersdata}
...

Posted by: Sussy Man from the skUnity Discord. View the thread on skUnity Discord here
 
Status
Not open for further replies.