Skocz do zawartości
  • 0

Problem z argumentami


Usunięty#23389
 Udostępnij

Pytanie

Witam ma oto taki skrypt:

 

command /cena [<text>] [<player>] [<text>]:
    permission: cena.ustaw
    trigger:
        if arg 1 is "warp":
            if arg 2 is set:
                if arg 3 is set:
                    set {komendy.cena.%arg 2%.warp} to arg 3
                    send "&fUstawiono graczowi &f&l%arg2% cene %arg1% na %{komendy.cena.%arg2%.warp}%"
        if arg 2 is not set:
            send "&fProsze podac komende w taki sposob: /cena [warp/home] [gracz] [ile]"
            stop
        if arg 1 is not set:
            send "&fProsze podac komende w taki sposob: /cena [warp/home] [gracz] [ile]"
            stop
        if arg 3 is not set:
            send "&fProsze podac komende w taki sposob: /cena [warp/home] [gracz] [ile]"
            stop
        if arg 1 is "home":
            if arg 2 is set:
                if arg 3 is set:
                    set {komendy.cena.%arg 2%.home} to arg 3
                    send "&fUstawiono graczowi &f&l%arg2% cene %arg1% na %{komendy.cena.%arg2%.home}%"

I pisze mi "Can't understand this expression arg2 (skrypt.sk, line 7: set {komendy.cena.%arg2%.warp) to arg3" (Wiem co to znaczy ale nie wiem czemu tak pisze :/)
Proszę o pomoc
 

Odnośnik do komentarza
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
command /cena [<text>] [<player>] [<text>]:
    permission: cena.ustaw
    trigger:
        if arg 1 is "warp":
            if arg 2 is set:
                if arg 3 is set:
                    set {komendy.cena.%arg 2%.warp} to arg 3
                    send "&fUstawiono graczowi &f&l%arg 2% cene %arg 1% na %{komendy.cena.%arg 2%.warp}%"
        if arg 2 is not set:
            send "&fProsze podac komende w taki sposob: /cena [warp/home] [gracz] [ile]"
            stop
        if arg 1 is not set:
            send "&fProsze podac komende w taki sposob: /cena [warp/home] [gracz] [ile]"
            stop
        if arg 3 is not set:
            send "&fProsze podac komende w taki sposob: /cena [warp/home] [gracz] [ile]"
            stop
        if arg 1 is "home":
            if arg 2 is set:
                if arg 3 is set:
                    set {komendy.cena.%arg 2%.home} to arg 3
                    send "&fUstawiono graczowi &f&l%arg 2% cene %arg 1% na %{komendy.cena.%arg 2%.home}%"

 

Edytowane przez xAxee
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...