pimaxpvp Posté(e) le 5 janvier 2018 Auteur Posté(e) le 5 janvier 2018 Toujours pas j'ai 4 erreur et sa quand je dem mon serv [23:40:23] [server thread/ERROR]: [skript] 'jetonsNP(p: player)' is not a text (JETONS.sk, line 1: function jetonsNP(p: player):')[23:40:23] [server thread/ERROR]: [skript] 'jetonsNP(player)' is not a boolean (yes/no) (JETONS.sk, line 22: jetonsNP(player)')[23:40:23] [server thread/ERROR]: [skript] 'jetonsNP(player)' is not a boolean (yes/no) (JETONS.sk, line 32: jetonsNP(player)')[23:40:23] [server thread/ERROR]: [skript] 'jetonsNP(player)' is not a boolean (yes/no) (JETONS.sk, line 42: jetonsNP(player)')[23:40:23] [server thread/ERROR]: [skript] 'jetonsNP(player)' is not a boolean (yes/no) (JETONS.sk, line 58: jetonsNP(player)') Sinon tu pourrais pas venir sur mon ts random ?
Random Posté(e) le 5 janvier 2018 Posté(e) le 5 janvier 2018 Toujours pas j'ai 4 erreur et sa quand je dem mon serv [23:40:23] [server thread/ERROR]: [skript] 'jetonsNP(p: player)' is not a text (JETONS.sk, line 1: function jetonsNP(p: player):')[23:40:23] [server thread/ERROR]: [skript] 'jetonsNP(player)' is not a boolean (yes/no) (JETONS.sk, line 22: jetonsNP(player)')[23:40:23] [server thread/ERROR]: [skript] 'jetonsNP(player)' is not a boolean (yes/no) (JETONS.sk, line 32: jetonsNP(player)')[23:40:23] [server thread/ERROR]: [skript] 'jetonsNP(player)' is not a boolean (yes/no) (JETONS.sk, line 42: jetonsNP(player)')[23:40:23] [server thread/ERROR]: [skript] 'jetonsNP(player)' is not a boolean (yes/no) (JETONS.sk, line 58: jetonsNP(player)') Sinon tu pourrais pas venir sur mon ts random ? C'est pour ça que je t'ai dit de recopier le dernier code que j'ai posté, celui que tu as mis contient encore la fonction que j'ai supprimée. Mets celui-ci à la place: on join: {jetons.%player%} isn't set: set {jetons.%player%} to 0 command /jetons [<text>] [<offline player>] [<number>]: trigger: arg 1 is set: arg 1 is "info": arg 2 isn't set: send "&6Vous avez %{jetons.%player%}% jetons." else: {jetons.%arg 2%} is set: send "&6Le joueur %arg 2% a %{jetons.%arg 2%}% jetons." else: send "&6Le joueur %arg 2% n'est pas reconnu ou n'a pas de jetons." else if arg 1 is "reset": player doesn't have permission "jetons.admin": send "&cErreur: /jetons info [pseudo]" stop arg 2 is set: {jetons.%arg 2%} is set: set {jetons.%arg 2%} to 0 send "&aVous avez réinitialisé les jetons de %arg 2%." else: send "&6Le joueur %arg 2% n'est pas reconnu ou n'a pas de jetons." else: send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" else if arg 1 is "give": player doesn't have permission "jetons.admin": send "&cErreur: /jetons info [pseudo]" stop arg 2 is set: arg 3 is set: add arg 3 to {jetons.%arg 2%} send "&6Vous avez donné %arg 3% jetons à %arg 2%." else: send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" else: send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" else if arg 1 is "take": player doesn't have permission "jetons.admin": send "&cErreur: /jetons info [pseudo]" stop arg 2 is set: arg 3 is set: {jetons.%arg 2%} is set: arg 3 is bigger than {jetons.%arg 2%}: send "&cLe joueur %arg 2% n'a que %{jetons.%arg 2%}% jetons." else: remove arg 3 from {jetons.%arg 2%} send "&6Vous avez retiré %arg 3% jetons à %arg 2%." else: send "&cLe joueur %arg 2% n'est pas reconnu ou n'a pas de jetons." else: send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" else: send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" else: player doesn't have permission "jetons.admin": send "&cErreur: /jetons info [pseudo]" stop send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" command /boutique [<text>] [<player>] [<text>] [<integer>] [<text>] [<text>]: trigger: sender is a player: open chest with 1 rows named "&3Boutique" to player format gui slot 1, 3, 5 and 7 of player with red glass pane named " " to do nothing format gui slot 0 of player with diamond named "&cGrades" to close then run console command "boutique grades %player%" format gui slot 2 of player with mob spawner named "&eSpawners" to close then run console command "boutique spawners %player%" format gui slot 4 of player with gold ingot named "&5Jetons" with lore "&3Vous avez||&3%{jetons.%player%}% jetons" to run player command "jetons info" format gui slot 6 of player with emerald block named "&3Money" to close then run console command "boutique money %player%" format gui slot 8 of player with gold chestplate named "&dKits" to close then run console command "boutique kits %player%" else: arg 1 is "grades": arg 3 isn't set: open chest with 1 rows named "&cGrades" to arg 2 format gui slot 1, 3, 5 and 7 of arg 2 with red glass pane named " " to do nothing format gui slot 0 of arg 2 with gold ingot named "&5Jetons" with lore "&3Vous avez||&3%{jetons.%arg 2%}% jetons" to run arg 2 command "jetons info" format gui slot 2 of arg 2 with iron ingot named "&aChevalier" with lore "&3Prix: 5 000 J" to run console command "boutique grades %arg 2% chevalier 5000" format gui slot 4 of arg 2 with diamond named "&3Legende" with lore "&3Prix: 10 000 J" to run console command "boutique grades %arg 2% legende 10000" format gui slot 6 of arg 2 with emerald named "&6Empereur" with lore "&3Prix: 15 000 J" to run console command "boutique grades %arg 2% empereur 15000" format gui slot 8 of arg 2 with gray dye named "&cRetour" to close then run arg 2 command "boutique" else: {jetons.%arg 2%} is bigger than or equal to arg 4: remove arg 4 from {jetons.%arg 2%} send "&6Vous avez acheté le grade %arg 4%" to arg 2 broadcast "&6Le joueur &3%arg 2% &6a acheté le grade &5%arg 3% !" close inventory of arg 2 else: send "&cVous n'avez que %{jetons.%arg 2%}% jetons." to arg 2 else if arg 1 is "spawners": arg 3 isn't set: open chest with 1 rows named "&eSpawners" to arg 2 format gui slot 1, 3, 5 and 7 of arg 2 with red glass pane named " " to do nothing format gui slot 0 of arg 2 with zombie spawn egg named "&eSpawner à Zombies" with lore "&3Prix: 1 500 J" to run console command "boutique spawners %arg 2% Zombie 1500" format gui slot 2 of arg 2 with skeleton spawn egg named "&eSpawner à Skeletons" with lore "&3Prix: 1 500J" to run console command "boutique spawners %arg 2% Skeleton 1500" format gui slot 4 of arg 2 with spider spawn egg named "&eSpawner à Spiders" with lore "&3Prix: 1 500 J" to run console command "boutique spawners %arg 2% Spider 1500" format gui slot 6 of arg 2 with cave spider spawn egg named "&eSpawner à Cave Spiders" with lore "&3Prix: 1 500 J" to run console command "boutique spawners %arg 2% CaveSpider 1500" format gui slot 8 of arg 2 with gray dye named "&cRetour" to close then run arg 2 command "boutique" else: {jetons.%arg 2%} is bigger than or equal to arg 4: inventory of arg 2 can hold 1 bedrock: remove arg 4 from {jetons.%arg 2%} execute console command "ss give %arg 2% %arg 3%" send "&6Vous avez acheté un spawner à %arg 3%(s)." to arg 2 else: send "&cVous n'avez pas de place dans votre inventaire." to arg 2 else: send "&cVous n'avez que %{jetons.%arg 2%}% jetons." to arg 2 else if arg 1 is "money": arg 3 isn't set: open chest with 1 row named "&3Money" to arg 2 format gui slot 0, 1, 2, 3, 5, 6 and 7 of arg 2 with red glass pane named " " to do nothing format gui slot 4 of arg 2 with emerald block named "&3Acheter 10 000 $" with lore "&3Prix: 1 500 J" to run console command "boutique money %arg 2% lot 1500" format gui slot 8 of arg 2 with gray dye named "&cRetour" to close then run arg 2 command "boutique" else: {jetons.%arg 2%} is bigger than or equal to arg 4: remove arg 4 from {jetons.%arg 2%} send "&6Vous avez acheté 10 000 $." to arg 2 add 10000 to balance of arg 2 else: send "&cVous n'avez que %{jetons.%arg 2%}% jetons." to arg 2 else if arg 1 is "kits": arg 3 isn't set: open chest with 1 row named "&dKits" to arg 2 format gui slot 1, 3, 5 and 7 of arg 2 with red glass pane named " " to do nothing format gui slot 0 of arg 2 with splash Health potion II item named "&6Kit Potions" with lore "&3Prix: 3 500 J" to run console command "boutique kits %arg 2% Potions 3500 essentials.kits.potions essentials.kit.potions" format gui slot 2 of arg 2 with ender pearl named "&aKit Découverte" with lore "&3Prix: 3 500 J" to run console command "boutique kits %arg 2% Decouverte 3500 essentials.kits.decouverte essentials.kit.decouverte" format gui slot 4 of arg 2 with tnt named "&5Kit Destruction" with lore "&3Prix: 3500 J" to run console command "boutique kits %arg 2% Destruction 3500 essentials.kits.decouverte essentials.kit.decouverte" format gui slot 6 of arg 2 with golden apple:0 named "&eKit Golden" with lore "&3Prix: 3 000 J" to run console command "boutique kits %arg 2% Golden 3000 essentials.kits.decouverte essentials.kit.decouverte" format gui slot 8 of arg 2 with gray dye named "&cRetour" to close then run arg 2 command "boutique" else: {jetons.%arg 2%} is bigger than or equal to arg 4: remove arg 4 from {jetons.%arg 2%} send "&6Vous avez acheté le Kit %arg 3%." to arg 2 execute console command "manuaddp %arg 2% %arg 5%" execute console command "manuaddp %arg 2% %arg 6%" else: send "&cVous n'avez que %{jetons.%arg 2%}% jetons." to arg 2
pimaxpvp Posté(e) le 5 janvier 2018 Auteur Posté(e) le 5 janvier 2018 0 Erreur Mais Toujours le probleme je peut prendre les items et meme quand je les prends sa ouvre rien
Random Posté(e) le 5 janvier 2018 Posté(e) le 5 janvier 2018 0 Erreur Mais Toujours le probleme je peut prendre les items et meme quand je les prends sa ouvre rien T'as redémarré ton serveur ? Si oui, envoie ton TS en mp EDIT: Après entretien TS, le skript marche correctement. Après une petite modification, voici le code final: on join: {jetons.%player%} isn't set: set {jetons.%player%} to 0 command /jetons [<text>] [<offline player>] [<number>]: trigger: arg 1 is set: arg 1 is "info": arg 2 isn't set: send "&6Vous avez %{jetons.%player%}% jetons." else: {jetons.%arg 2%} is set: send "&6Le joueur %arg 2% a %{jetons.%arg 2%}% jetons." else: send "&6Le joueur %arg 2% n'est pas reconnu ou n'a pas de jetons." else if arg 1 is "reset": player doesn't have permission "jetons.admin": send "&cErreur: /jetons info [pseudo]" stop arg 2 is set: {jetons.%arg 2%} is set: set {jetons.%arg 2%} to 0 send "&aVous avez réinitialisé les jetons de %arg 2%." else: send "&6Le joueur %arg 2% n'est pas reconnu ou n'a pas de jetons." else: send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" else if arg 1 is "give": player doesn't have permission "jetons.admin": send "&cErreur: /jetons info [pseudo]" stop arg 2 is set: arg 3 is set: add arg 3 to {jetons.%arg 2%} send "&6Vous avez donné %arg 3% jetons à %arg 2%." else: send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" else: send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" else if arg 1 is "take": player doesn't have permission "jetons.admin": send "&cErreur: /jetons info [pseudo]" stop arg 2 is set: arg 3 is set: {jetons.%arg 2%} is set: arg 3 is bigger than {jetons.%arg 2%}: send "&cLe joueur %arg 2% n'a que %{jetons.%arg 2%}% jetons." else: remove arg 3 from {jetons.%arg 2%} send "&6Vous avez retiré %arg 3% jetons à %arg 2%." else: send "&cLe joueur %arg 2% n'est pas reconnu ou n'a pas de jetons." else: send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" else: send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" else: player doesn't have permission "jetons.admin": send "&cErreur: /jetons info [pseudo]" stop send "&cErreur: /jetons <info/give/take/reset> [pseudo] [montant]" command /boutique [<text>] [<player>] [<text>] [<integer>] [<text>] [<text>]: trigger: sender is a player: open chest with 1 rows named "&3Boutique" to player format gui slot 1, 3, 5 and 7 of player with red glass pane named " " to do nothing format gui slot 0 of player with diamond named "&cGrades" to close then run console command "boutique grades %player%" format gui slot 2 of player with mob spawner named "&eSpawners" to close then run console command "boutique spawners %player%" format gui slot 4 of player with gold ingot named "&5Jetons" with lore "&3Vous avez||&3%{jetons.%player%}% jetons" to run player command "jetons info" format gui slot 6 of player with emerald block named "&3Money" to close then run console command "boutique money %player%" format gui slot 8 of player with gold chestplate named "&dKits" to close then run console command "boutique kits %player%" else: arg 1 is "grades": arg 3 isn't set: open chest with 1 rows named "&cGrades" to arg 2 format gui slot 1, 3, 5 and 7 of arg 2 with red glass pane named " " to do nothing format gui slot 0 of arg 2 with gold ingot named "&5Jetons" with lore "&3Vous avez||&3%{jetons.%arg 2%}% jetons" to run arg 2 command "jetons info" format gui slot 2 of arg 2 with iron ingot named "&aChevalier" with lore "&3Prix: 5 000 J" to run console command "boutique grades %arg 2% chevalier 5000" format gui slot 4 of arg 2 with diamond named "&3Legende" with lore "&3Prix: 10 000 J" to run console command "boutique grades %arg 2% legende 10000" format gui slot 6 of arg 2 with emerald named "&6Empereur" with lore "&3Prix: 15 000 J" to run console command "boutique grades %arg 2% empereur 15000" format gui slot 8 of arg 2 with gray dye named "&cRetour" to close then run arg 2 command "boutique" else: {jetons.%arg 2%} is bigger than or equal to arg 4: remove arg 4 from {jetons.%arg 2%} send "&6Vous avez acheté le grade %arg 4%" to arg 2 execute console command "manuadd %arg 2% %arg 3% all" broadcast "&6Le joueur &3%arg 2% &6a acheté le grade &5%arg 3% !" close inventory of arg 2 else: send "&cVous n'avez que %{jetons.%arg 2%}% jetons." to arg 2 else if arg 1 is "spawners": arg 3 isn't set: open chest with 1 rows named "&eSpawners" to arg 2 format gui slot 1, 3, 5 and 7 of arg 2 with red glass pane named " " to do nothing format gui slot 0 of arg 2 with zombie spawn egg named "&eSpawner à Zombies" with lore "&3Prix: 1 500 J" to run console command "boutique spawners %arg 2% Zombie 1500" format gui slot 2 of arg 2 with skeleton spawn egg named "&eSpawner à Skeletons" with lore "&3Prix: 1 500J" to run console command "boutique spawners %arg 2% Skeleton 1500" format gui slot 4 of arg 2 with spider spawn egg named "&eSpawner à Spiders" with lore "&3Prix: 1 500 J" to run console command "boutique spawners %arg 2% Spider 1500" format gui slot 6 of arg 2 with cave spider spawn egg named "&eSpawner à Cave Spiders" with lore "&3Prix: 1 500 J" to run console command "boutique spawners %arg 2% CaveSpider 1500" format gui slot 8 of arg 2 with gray dye named "&cRetour" to close then run arg 2 command "boutique" else: {jetons.%arg 2%} is bigger than or equal to arg 4: inventory of arg 2 can hold 1 bedrock: remove arg 4 from {jetons.%arg 2%} execute console command "ss give %arg 2% %arg 3%" send "&6Vous avez acheté un spawner à %arg 3%(s)." to arg 2 else: send "&cVous n'avez pas de place dans votre inventaire." to arg 2 else: send "&cVous n'avez que %{jetons.%arg 2%}% jetons." to arg 2 else if arg 1 is "money": arg 3 isn't set: open chest with 1 row named "&3Money" to arg 2 format gui slot 0, 1, 2, 3, 5, 6 and 7 of arg 2 with red glass pane named " " to do nothing format gui slot 4 of arg 2 with emerald block named "&3Acheter 10 000 $" with lore "&3Prix: 1 500 J" to run console command "boutique money %arg 2% lot 1500" format gui slot 8 of arg 2 with gray dye named "&cRetour" to close then run arg 2 command "boutique" else: {jetons.%arg 2%} is bigger than or equal to arg 4: remove arg 4 from {jetons.%arg 2%} send "&6Vous avez acheté 10 000 $." to arg 2 add 10000 to balance of arg 2 else: send "&cVous n'avez que %{jetons.%arg 2%}% jetons." to arg 2 else if arg 1 is "kits": arg 3 isn't set: open chest with 1 row named "&dKits" to arg 2 format gui slot 1, 3, 5 and 7 of arg 2 with red glass pane named " " to do nothing format gui slot 0 of arg 2 with splash Health potion II item named "&6Kit Potions" with lore "&3Prix: 3 500 J" to run console command "boutique kits %arg 2% Potions 3500 essentials.kits.potions essentials.kit.potions" format gui slot 2 of arg 2 with ender pearl named "&aKit Découverte" with lore "&3Prix: 3 500 J" to run console command "boutique kits %arg 2% Decouverte 3500 essentials.kits.decouverte essentials.kit.decouverte" format gui slot 4 of arg 2 with tnt named "&5Kit Destruction" with lore "&3Prix: 3500 J" to run console command "boutique kits %arg 2% Destruction 3500 essentials.kits.decouverte essentials.kit.decouverte" format gui slot 6 of arg 2 with golden apple:0 named "&eKit Golden" with lore "&3Prix: 3 000 J" to run console command "boutique kits %arg 2% Golden 3000 essentials.kits.decouverte essentials.kit.decouverte" format gui slot 8 of arg 2 with gray dye named "&cRetour" to close then run arg 2 command "boutique" else: {jetons.%arg 2%} is bigger than or equal to arg 4: remove arg 4 from {jetons.%arg 2%} send "&6Vous avez acheté le Kit %arg 3%." to arg 2 execute console command "manuaddp %arg 2% %arg 5%" execute console command "manuaddp %arg 2% %arg 6%" else: send "&cVous n'avez que %{jetons.%arg 2%}% jetons." to arg 2
Sokrax Posté(e) le 11 janvier 2018 Posté(e) le 11 janvier 2018 "kimidu1609 300 messages à l’heure ou je vous ecris ce message. Road to 500 55% effectué" C'est typiquement le genre de messages qui me désolent... Il a le droit de demander un skript sans forcément vouloir apprendre le langage, ça fait pas de nous des "chiens" si on décide de lui faire. A part augmenter ton nombre de messages, ou créer une tension sur le topic, je vois pas l'utilité. Et critiquer son orthographe quand toi-même tu fais des fautes, c'est paradoxal non ? @pimaxpvp Ton serveur est premium ou cracké ? Bravo , génie
Messages recommandés