Znajdź zawartość
Wyświetlanie wyników dla tagów 'function'.
-
Witam. W funkcjach nie dziala dodawanie i mnozenie? set {_a} to {_a2}+{_a2}+{_a2} set {_a} to {a}*2 zwraca none
-
KOD: function test2(p: player): send "test" to {_p} command /test: trigger: test2(player) BŁĘDY: 'function test2(p: player)' is not a text (test.sk, line 1: function test2(p:player):') 'test2(player)' is not a boolean (yes/no) (test.sk, line 5: test2(player)') Mam Skript 2.1.2, SkQuery 3.21.4 i WildSkript 1.8.
-
Cześć, mam taką funkcję: function spawn_mob(text: text, loc: location): Tylko, że gdy chcę ją uzyć w taki sposób: spawn_mob(krowa, player's location) To jest błąd "The 1st argument given to the function 'spawn_mob' is not of the required type text. Check the corrent order of the arguments and put lists into parentheses if appropriate (e.g. 'give(player, (iron ore and gold ore))'). Please note that storing the value in a variable and then using that variable as parameter will suppress this error, but it still won't work." Ma ktoś jakiś pomysł jak to naprawić? :c EDIT: Problem już rozwiązany, co ciekawe podczas pisania tego wpadłem na pomysł jak to naprawić, temat do zamknięcia.
- 1 odpowiedź
-
Czy podal by mi ktos przyklady z uzyciem funkcji? Wiem jak one dzialaja tylko nie wiem czy dobrze to robie. Oto jest moj sposob. function "giveEq"{}: give 1 iron sword to arg{1}on rightclick holding a stick: function "giveEq" { player }