Skript Destek - Chat ile ilgili.

tutkusina

Kızıltaş Madencisi
En iyi cevaplar
0
Çünkü bilgisayarlar akılsızdır.
Bir bilgisayar komutu senin elmas yazınca elmas yazısındaki "as" bölümünü değiştirip değiştiremeyeceğini bilemez.
Bunu düzeltmek için if else komutları kullanman lazım.
Yardım edebildiysem mütteşekkür olurum.
 

Myper

Kızıltaş Madencisi
En iyi cevaplar
1
Eğer mesaj direk "as" ise, ya da "as " mesajını içeriyorsa (contains) kelimeyi değiştirirsin
 

Rosenrot

LAGOMORPHA
En iyi cevaplar
0
PHP:
on chat:
    set {_m} to message
    set {_l} to length of {_m}
    set {_f3} to first 3 characters of {_m}
    set {_f2} to first 2 characters of {_m}
    if {_f3} is "sa ":
        set {_s} to subtext of {_m} from characters 3 to {_l}
        set message to "Selamun Aleykum %{_s}%"
    else if {_f2} is "sa":
        set {_s} to subtext of {_m} from characters 3 to {_l}
        set message to "Selamun Aleykum %{_s}%"
 
Son düzenleme:
Üst