Cześć, piszę skrypcik na atrakcje na serwer no i kiepsko bo nie mogę obczaić takiego czegoś
every 1 second: if {konkursy::testMath} is true: if {konkursy.testMath.time} is larger than 0: remove 1 from {konkursy.testMath.time} send "%{konkursy.testMath.time}%" to "knugi" parsed as offlineplayer if {konkursy.testMath.time} is 0: set {konkursy.testMath.time} to {@testMathTime} set {konkursy::testMath::chat} to true wait 1 tick execute console command "kontestmath"
Wszystko pięknie ładnie tylko że co? Tylko że. Variables {konkursy.testMath.time} (przedtem miałem {konkursy::testMath::time}) cały czas mnie trolluje :/
Reloaduje skrypt wszystko pięknie odlicza 5 4 3 2 1 i tutaj taka mała moja dziwna reakcja spami 0 0 0 0 0 0
every 1 second: if {10} is not set: set {10} to 5 if {10} is 0: set {10} to 5 if {10} is larger than 0: send "%{10}%" to "knugi" parsed as offlineplayer remove 1 from {10}
I ładnie odliczało 5 4 3 2 1 5 4 3 2 1
Nie rozumiem, być może jakaś literówka, ale napisałem już 230 linijek i cholera mnie bierze jak patrzę na ten kod ^_^
Pytanie
knugi 794
Cześć, piszę skrypcik na atrakcje na serwer no i kiepsko bo nie mogę obczaić takiego czegoś
every 1 second: if {konkursy::testMath} is true: if {konkursy.testMath.time} is larger than 0: remove 1 from {konkursy.testMath.time} send "%{konkursy.testMath.time}%" to "knugi" parsed as offlineplayer if {konkursy.testMath.time} is 0: set {konkursy.testMath.time} to {@testMathTime} set {konkursy::testMath::chat} to true wait 1 tick execute console command "kontestmath"Wszystko pięknie ładnie tylko że co? Tylko że. Variables {konkursy.testMath.time} (przedtem miałem {konkursy::testMath::time}) cały czas mnie trolluje :/
Reloaduje skrypt wszystko pięknie odlicza 5 4 3 2 1 i tutaj taka mała moja dziwna reakcja spami 0 0 0 0 0 0
(http://knugi.ct8.pl/qkcbanq.jpg)
I przedtem testowałem jeszcze takim czymś:
every 1 second: if {10} is not set: set {10} to 5 if {10} is 0: set {10} to 5 if {10} is larger than 0: send "%{10}%" to "knugi" parsed as offlineplayer remove 1 from {10}I ładnie odliczało 5 4 3 2 1 5 4 3 2 1
Nie rozumiem, być może jakaś literówka, ale napisałem już 230 linijek i cholera mnie bierze jak patrzę na ten kod ^_^
Odnośnik do komentarza
https://skript.pl/temat/6866-problem-z-warunkiem-i-odejmowaniem-z-variablesu-liczb/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi