Aller au contenu
TheProToTiPe

Problème de calcul

Messages recommandés

Bonjour bonsoir me voilà en problème . Mon Mc me dit (indentation error: expected 12 spaces, but found 3 tabs (NOM DU SKRIPT) line 42: set {_CPS} to {clicks.%arg 1%} /15).

Voici le code de mon skript :

#===========================================================#
#															#
#              SKRIPT DE MODÉRATION COMPLET	(V1.5)			#
# 						Non Fonctionel						#
#						(BY TheProDu)						#
#															#
#===========================================================#

#===========================================================#
#															#
#						SECTION BAN 						#
#															#
#===========================================================#
command /banned [<offline player>] [<text>]:
	permission: ban.ban
	trigger:
		ban argument 1 because "&c%arg 2% %nl% %nl% &cConnection lost for BANNED"
		kick arg 1 because "&fYou are banned form this server ! %nl% &c%arg 2% %nl% %nl% &cConnection lost for BANNED"
		

#===========================================================#
#															#
#						SECTION INVSEE 						#
#															#
#===========================================================#
command /inv [<player>]:
	trigger:
		open the arg-1's inventory for the player

#===========================================================#
#															#
#						SECTION CPS 						#
#															#
#===========================================================#
command /cpstester [<player>]:
    permission: cps.test.use
    trigger:
        if arg 1 is set:
            set {clicks.%arg 1%} to 0
            set {click.%arg 1%} to true
            wait 15 seconds
			set {_calc} to {clicks.%arg 1%} / 15
            message "&9%arg 1% &6 à fait &c%{_calc}% CPS"
            set {click.%arg 1%} to false
        if arg 1 is not set:
            message "&cMets un joueur"
on leftclick:
    if {click.%player%} is true:
        add 1 to {clicks.%player%}

#===========================================================#
#															#
#						SECTION FREEZE 						#
#															#
#===========================================================#
command /freeze [<player>] [<text>]:
	permission: freeze.use
	trigger:
		if arg 1 is set:
			if arg 2 is set:
				if arg 2 is "on":	
					set {freeze.%arg 1%} to true
				if arg 2 is "off":
					set {freeze.%arg 1%} to false
			if arg 2 is not set:
				message "&6[&9Freeze&6] &cMets un états : On/off "
		if arg 1 is not set:
			message "&6[&9Freeze&6] &cMets un pseudo !"
on any move:
	if {freeze.%player%} is true:
		cancel event
on join:
	set {freeze.%player%} to false

#===========================================================#
#															#
#						SECTION /SS  ©						#
#															#
#===========================================================#
on join:
	set {asFreeze.%player%} to 0
command /ss [<offline player>]:
	permission: ss.open
	trigger:
		if arg 1 is set:
			
			wait 2 ticks
			open chest with 4 row named "&8SS %arg 1%" to player
			wait 3 ticks
			format slot 0 of player with white stained glass named " " to close
			format slot 1 of player with white stained glass named " " to close
			format slot 2 of player with white stained glass named " " to close
			format slot 3 of player with white stained glass named " " to close
			format slot 4 of player with white stained glass named " " to close
			format slot 5 of player with white stained glass named " " to close
			format slot 6 of player with white stained glass named " " to close
			format slot 7 of player with white stained glass named " " to close
			format slot 8 of player with white stained glass named " " to close
			format slot 9 of player with white stained glass named " " to close
			format slot 17 of player with white stained glass named " " to close
			format slot 18 of player with white stained glass named " " to close
			format slot 28 of player with white stained glass named " " to close
			format slot 29 of player with white stained glass named " " to close
			format slot 30 of player with white stained glass named " " to close
			format slot 31 of player with white stained glass named " " to close
			format slot 32 of player with white stained glass named " " to close
			format slot 33 of player with white stained glass named " " to close
			format slot 34 of player with white stained glass named " " to close
			format slot 35 of player with white stained glass named " " to close
			format slot 26 of player with white stained glass named " " to close
			format slot 27 of player with white stained glass named " " to close
			format slot 19 of player with blaze rod named "&9Freeze&f %arg 1%" to close then run [make player execute command "/freeze %arg 1% on"]
			format slot 21 of player with clock named "&cCPS&f %arg 1%" to close then run [make player execute command "/cpstester %arg 1%"]
			format slot 23 of player with chest named "&aInventaire&f %arg 1%" to close then run [make player execute command "/inv %arg 1%"]
			format slot 11 of player with fire charge named "&cBan" to close then run [make player execute command "/ssban %arg 1%"]
			format slot 13 of player with arg 1's skull named "%arg 1%" to close
			format slot 15 of player with firework rocket named "&6Kick" to close then run [make player execute command "/sskick %arg 1%"]
		else:
			send "&cVous n'avez pas défini le joueur a qui effectuer la sanction" to player
#to close then run [make player execute command "/commande"]
command /sskick [<offline player>]:
	trigger:
		wait 2 ticks
		open chest with 6 row named "&8SS %arg 1%" to player
		wait 3 ticks
		format slot 0 of player with white stained glass named " " to close
		format slot 1 of player with white stained glass named " " to close
		format slot 2 of player with white stained glass named " " to close
		format slot 3 of player with white stained glass named " " to close
		format slot 4 of player with white stained glass named " " to close
		format slot 5 of player with white stained glass named " " to close
		format slot 6 of player with white stained glass named " " to close
		format slot 7 of player with white stained glass named " " to close
		format slot 8 of player with white stained glass named " " to close
		format slot 9 of player with white stained glass named " " to close
		format slot 17 of player with white stained glass named " " to close
		format slot 18 of player with white stained glass named " " to close
		format slot 26 of player with white stained glass named " " to close
		format slot 27 of player with white stained glass named " " to close
		format slot 35 of player with white stained glass named " " to close
		format slot 36 of player with white stained glass named " " to close
		format slot 44 of player with white stained glass named " " to close
		format slot 13 of player with arg 1's skull named "%arg 1%" to close
		format slot 45 of player with white stained glass named " " to close
		format slot 46 of player with white stained glass named " " to close
		format slot 47 of player with white stained glass named " " to close
		format slot 48 of player with white stained glass named " " to close
		format slot 49 of player with white stained glass named " " to close
		format slot 50 of player with white stained glass named " " to close
		format slot 51 of player with white stained glass named " " to close
		format slot 52 of player with white stained glass named " " to close
		format slot 53 of player with white stained glass named " " to close
		format slot 28 of player with nether star named "&6Ennervitude en vers le staff" to close then run [make player execute command "/kick %arg 1% &6Ennervitude en vers le staff"]
		format slot 29 of player with nether star named "&6Refus de Passer sur Discord" to close then run [make player execute command "/kick %arg 1% &6Refus de Passer sur Discord"]
		format slot 30 of player with nether star named "&6Abut de spawn d'un BOSS" to close then run [make player execute command "/kick %arg 1% &6Abut de spawn d'un BOSS"]
command /ssban [<offline player>]:
	trigger:
		wait 2 ticks
		open chest with 6 row named "&8SS %arg 1%" to player
		wait 3 ticks
		format slot 0 of player with white stained glass named " " to close
		format slot 1 of player with white stained glass named " " to close
		format slot 2 of player with white stained glass named " " to close
		format slot 3 of player with white stained glass named " " to close
		format slot 4 of player with white stained glass named " " to close
		format slot 5 of player with white stained glass named " " to close
		format slot 6 of player with white stained glass named " " to close
		format slot 7 of player with white stained glass named " " to close
		format slot 8 of player with white stained glass named " " to close
		format slot 9 of player with white stained glass named " " to close
		format slot 17 of player with white stained glass named " " to close
		format slot 18 of player with white stained glass named " " to close
		format slot 26 of player with white stained glass named " " to close
		format slot 27 of player with white stained glass named " " to close
		format slot 35 of player with white stained glass named " " to close
		format slot 36 of player with white stained glass named " " to close
		format slot 44 of player with white stained glass named " " to close
		format slot 13 of player with arg 1's skull named "%arg 1%" to close
		format slot 45 of player with white stained glass named " " to close
		format slot 46 of player with white stained glass named " " to close
		format slot 47 of player with white stained glass named " " to close
		format slot 48 of player with white stained glass named " " to close
		format slot 49 of player with white stained glass named " " to close
		format slot 50 of player with white stained glass named " " to close
		format slot 51 of player with white stained glass named " " to close
		format slot 52 of player with white stained glass named " " to close
		format slot 53 of player with white stained glass named " " to close
		format slot 28 of player with fire charge named "&6Cheat" to close then run [make player execute command "/banned %arg 1% &cCheat"]
		format slot 29 of player with fire charge named "&6Refus de Passer sur Discord" to close then run [make player execute command "/banned %arg 1% &6Refus de Passer sur Discord a plusieurs reprise"]
		format slot 30 of player with fire charge named "&6Abut de spawn d'un BOSS" to close then run [make player execute command "/banned %arg 1% &6Abut de spawn d'un BOSS (Au bout de 3 warn)"]

#===========================================================#
#															#
#						BONUS /spawn						#
#															#
#===========================================================#

options:
	spawn: &f[&6Spawn&f]
	logo: &8[&9Vanish&8]
	permission: vanish.use
	permissionalert: vanishalert.use
command /setspawn:
	trigger:
		set {spawn} to player's location
		message "{@spawn} Le spawn a ete defini ( &6%{spawn}% &f)"
		
command /spawn:
	trigger:
		teleport player to {spawn}
		message "[&6Teleportation&f] &7Teleportation en cours"
		
#===========================================================#
#															#
#						SECTION STAFF 						#
#															#
#===========================================================#
command /staff:
	trigger:
		if {staff.%player%.active} is false:
			set {staff.%player%.active} to true
			stop
		if {staff.%player%.active} is true:
			set {staff.%player%.active} to false
			stop
on break:
	if {staff.%player%.active} is true:
		cancel event

 

Partager ce message


Lien à poster
Partager sur d’autres sites
Il y a 1 heure, TheProToTiPe a dit :

format slot 0 of player with white stained glass named " " to close format slot 1 of player with white stained glass named " " to close format slot 2 of player with white stained glass named " " to close format slot 3 of player with white stained glass named " " to close format slot 4 of player with white stained glass named " " to close format slot 5 of player with white stained glass named " " to close format slot 6 of player with white stained glass named " " to close format slot 7 of player with white stained glass named " " to close format slot 8 of player with white stained glass named " " to close format slot 9 of player with white stained glass named " " to close format slot 17 of player with white stained glass named " " to close format slot 18 of player with white stained glass named " " to close format slot 28 of player with white stained glass named " " to close format slot 29 of player with white stained glass named " " to close format slot 30 of player with white stained glass named " " to close format slot 31 of player with white stained glass named " " to close format slot 32 of player with white stained glass named " " to close format slot 33 of player with white stained glass named " " to close format slot 34 of player with white stained glass named " " to close format slot 35 of player with white stained glass named " " to close format slot 26 of player with white stained glass named " " to close format slot 27 of player with white stained glass named " " to close

wow, tu peux tellement optimiser ca :

loop 10 times:
    format slot (loop-value - 1) of player with white stained glass named " " to close
    format slot 17, 18, 26, 27, 35 and 36 of player with white stained glass named " " to close
    format slot (43 + loop-value) of player with white stained glass named " " to close

Enfin, il suffit de traduire ton erreur en français. Ca te dit que tu as utilisé que des espaces dans ton code excepté la ligne 43 où tu utilises des tabulations. Tu ne peux pas mélanger tabulations et espaces dans ton code. Nous te recommandons d'utiliser des tabulations.

 

 

Partager ce message


Lien à poster
Partager sur d’autres sites

Tiens normalement c'est bon !

command /cpstester [<player>]:
    permission: cps.test.use
    trigger:
        if arg 1 is set:
            set {clicks.%arg 1%} to 0
            set {click.%arg 1%} to true
            wait 15 seconds
	    set {_calc} to {clicks.%arg 1%} / 15
            message "&9%arg 1% &6 à fait &c%{_calc}% CPS"
            set {click.%arg 1%} to false
        else:
            message "&cMets un joueur"

 

Hésite surtout pas à liker si je t'ai aider ? xD

Modifié par lazerda456

Partager ce message


Lien à poster
Partager sur d’autres sites
Il y a 21 heures, lazerda456 a dit :

Tiens normalement c'est bon !

command /cpstester [<player>]:
    permission: cps.test.use
    trigger:
        if arg 1 is set:
            set {clicks.%arg 1%} to 0
            set {click.%arg 1%} to true
            wait 15 seconds
	    set {_calc} to {clicks.%arg 1%} / 15
            message "&9%arg 1% &6 à fait &c%{_calc}% CPS"
            set {click.%arg 1%} to false
        else:
            message "&cMets un joueur"

 

Hésite surtout pas à liker si je t'ai aider ? xD

Je suis désoler pour toi mes se la ne marche toujours pas (sa me rajoute 5 erreur) mais merci quand même

Partager ce message


Lien à poster
Partager sur d’autres sites

Bah justement sa fonctionne ? si tu as 5 erreurs c'est que tu as mal mis les tabs ou tu as fait des erreurs après 

Partager ce message


Lien à poster
Partager sur d’autres sites

Peux être la version de tes addons ou surement qu'il te manque quelque addons ?

Partager ce message


Lien à poster
Partager sur d’autres sites
Le 01/10/2018 à 21:35, lazerda456 a dit :

Bah justement sa fonctionne ? si tu as 5 erreurs c'est que tu as mal mis les tabs ou tu as fait des erreurs après 

Euh ...... nn j'ai corectement repris le bout de code DSL

Partager ce message


Lien à poster
Partager sur d’autres sites
Le 03/10/2018 à 01:36, iTaaQ a dit :

Peux être la version de tes addons ou surement qu'il te manque quelque addons ?

Cela métonerais

 

Partager ce message


Lien à poster
Partager sur d’autres sites
Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.

×

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.