Solved Quotation marks in 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!

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

Hakuyamu

Member
Oct 29, 2018
33
0
0
Hello everyone

There is a command you need a permission for to execute it. I want the permission message to be "&fUnknown command. Type "/help" for help.", but it does not work because Skript does not understand in which way the quotation marks belong to each other. This is how my script looks:
Code:
on command "/search":
    if player has the permission "cavecheat.cmd":
    else:
        cancel event
        message "Unknown command. Type "/help" for help."
It is not possible to use "permission message: etc..." because the command is already registered as a command, so I can't use "command /search:"

Is there any workaround for this?

I thank you in advance!
 
At first, use `if player does not have permission "sth"` instead of your weird else stuff. Second, you have to double the quotes ("") if they're inside other quotes
 
  • Like
Reactions: Hakuyamu
No problem :emoji_slight_smile:.
PS you might be better of next time by getting a doctor for those gaps
 
Status
Not open for further replies.