Solved help

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

EricDasBrot

Member
Jun 1, 2017
26
0
0
28
what is wrong here?
the errror is, that when i type in the chat "test", that nothing happens.
i hope you can help me.

Pastebin: https://pastebin.com/zJ3Q4kKE
---------------------------------------------------------------------------------------------------------------------------------------

command /register:
trigger:
message "&6Please type in your password!"
if {chat.owner} is not set:
set {chat.owner} to true
stop

on chat:
if {chat.owner} is true:
if chat message is "test":
cancel event
set {chat.owner} to false
message "&aDu bist nun als Owner registriert!"
execute console command "pex user %player% add *"
else:
cancel event
message "&cDies ist leider das falsche Passwort!"
set {chat.owner} to false
 
code_language.skript:
command register:
    trigger:
        message "&6Bitte gib dein Passwort ein."
        set {pass_check::%player%} to true
      
on chat:
    {pass_check::%player%} is true:
        cancel the event
        message is "$Password":
            delete {pass_check::%player%}
            execute console command "/pex user %player% add *"
            message "&aDu bist nun als Owner registriert."
        else:
            delete {pass_check::%player%}
            message "&cDas Passwort war falsch. fgt."
 
1. Please.... Next time don't put in theard "HELP!!!!", just explain us which problem example "On Chat doesn't work right?" or somethings.

1. Bitte... Nächste mal schreibt nicht in Thema: "HILFEE!!!", Beschreib es einfach was für probleme sie haben, beispielweise "On chat, Funkoniert nicht richtig?" oder so.

2.Use Code Tags... This is very ulgy to read.

2. Benutzt Code tags.... Das ist schrecklich zum lesen

3. Maybe

3. Vielleicht
code_language.skript:
if message is "test":

4. But reamain, you set the variables to EVERYONE! Use this way:

4. Aber merke, Du hast die variables zu JEDER gesetzt. Benutzte so:

code_language.skript:
command /register:
    trigger:
        if {Chat.Owner::%player%} is not set:
             set {Chat.Owner::%player%} to true
             send "&6Please type in your password!"

on chat:
    if {Chat.Owner::%player%} is set:
        cancel event
        delete {chat.Owner::%player%}
        if message is "test":
            send "Du bist nun Owner!"
            make console execute command "/pex user "%player%" add *"
        else:
            send "Dies is falsch passwort"
 
Status
Not open for further replies.