Skocz do zawartości
  • 0

Problem z randomem (cyframi)


nicianos69

Pytanie

Mam z tym problem:

every 5 minutes:	set {_pogoda} to random integer between 1 and 4:		if {_pogoda} is 1:			set weather in player's world to rain			send "&8[&6>&8] &7Zmieniono pogode na: &3DESZCZ"		if {_pogoda} is 2:			set weather in player's world to sun			send "&8[&6>&8] &7Zmieniono pogode na: &3Czyste Niebo"		if {_pogoda} is 3:			set weather in player's world to night			send "&8[&6>&8] &7Zmieniono pogode na: &3NOC"		if {_pogoda} is 4:			set weather in player's world to day			send "&8[&6>&8] &7Zmieniono pogode na: &3DZIEN"ZDRÓDŁO: nicianos.c0.pl
Odnośnik do komentarza
https://skript.pl/temat/3217-problem-z-randomem-cyframi/
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
every 5 minutes:	set {_pogoda} to random integer between 1 and 4	if {_pogoda} is 1:		set weather in player's world to rain		send "&8[&6>&8] &7Zmieniono pogode na: &3DESZCZ"	if {_pogoda} is 2:		set weather in player's world to sun		send "&8[&6>&8] &7Zmieniono pogode na: &3Czyste Niebo"	if {_pogoda} is 3:		set weather in player's world to night		send "&8[&6>&8] &7Zmieniono pogode na: &3NOC"	if {_pogoda} is 4:		set weather in player's world to day		send "&8[&6>&8] &7Zmieniono pogode na: &3DZIEN"

Proszę.

Odnośnik do komentarza
https://skript.pl/temat/3217-problem-z-randomem-cyframi/#findComment-28178
Udostępnij na innych stronach

  • 0

set weather in player's world to day

Nie określasz gracza, zamień to na

set weather in world "świat" to day

Aha, i usuń dwukropek i taba po

set {_pogoda} to random integer between 1 and 4

Edytowane przez Nekuś
Odnośnik do komentarza
https://skript.pl/temat/3217-problem-z-randomem-cyframi/#findComment-28221
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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