Punishment System with Proof

  • 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.
i said in my first post... if the text from a url is none then you can assume the link is invalid
 
i said in my first post... if the text from a url is none then you can assume the link is invalid

There is no such syntax:

code_language.skript:
if url from arg-3 is not "<none>":
     broadcast "Argument 3 has been defined."
 
this is my last post on this thread, my patience for incompetence only goes so far
code_language.skript:
if text from arg-3 is not "<none>": #if the text from the url is not none
    broadcast "Link is valid" 
else: #the text from the url was none
    broadcast "Link is invalid"
if you still dont understand or are incapable of copying and pasting hopefully someone else will explain it to you in a way you understand because apparently i cant
 
[QUOTE = "Donut, post: 28957, membro: 1948"] este é meu último post neste tópico, minha paciência por incompetência só vai tão longe
[CODE = SKRIPT] se o texto de arg-3 não for "<none>": # se o texto da url não for nenhum
transmissão "Link is valid"
else: #o texto da url não foi nenhum
broadcast "Link is invalid" [/ CODE]
se você ainda não entendeu ou é incapaz de copiar e colar esperançosamente alguém explicará isto a você de um modo que você entende porque aparentemente eu não posso [/ QUOTE]

Olha, Donut, eu juntei tudo e não deu certo.
[doublepost=1523827472,1523827405][/doublepost]
[QUOTE = "Donut, post: 28957, membro: 1948"] este é meu último post neste tópico, minha paciência por incompetência só vai tão longe
[CODE = SKRIPT] se o texto de arg-3 não for "<none>": # se o texto da url não for nenhum
transmissão "Link is valid"
else: #o texto da url não foi nenhum
broadcast "Link is invalid" [/ CODE]
se você ainda não entendeu ou é incapaz de copiar e colar esperançosamente alguém explicará isto a você de um modo que você entende porque aparentemente eu não posso [/ QUOTE]

Look, Donut, I put everything in and it did not work.
[doublepost=1523835722][/doublepost]
you could do what you said and just check if the first 8 characters of arg-3 are https://
code_language.skript:
if the first 8 characters of arg-3 are "https://":
    broadcast "Argument 3 has been defined."
if you wanna make sure the link is valid and/or if you wanna allow links that dont necessarily begin with https:// then you could use an expression with a url in it such as skquery''s text from url expression and if it returns none you can assume the link is invalid
code_language.skript:
if text from arg-3 is not "<none>":
    broadcast "Argument 3 has been defined."

Now Donut: if the player put in the argument three these 8 words: https: // and the rest the player put: jkndcfnjdvsnjkdf.net. What I'll do.
 
Status
Not open for further replies.