Greather than %arg-2% balance

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Kondii

Member
Jun 29, 2017
17
1
3
25
Skript Version: Skript 2.1.2
Skript Author: Njol
Minecraft Version: 1.8

Code:
code_language.skript:
Command /pay [<offline player>] [<number]:
	trigger:
		if arg-1 is set:
			if arg-2 is set:
				if arg-2 is between 1 and 9999999999:
					if player's balance is greather than %arg-2%:
						send "&8&l:: &a&lSkolepay &8&l:: &7Du overførte &a&l%arg-2% &7til &e%arg-1%" to player
						send "&8&l:: &a&lSkolepay &8&l:: &7Du fik &a&l%arg-2% &7fra %arg-1%" to arg-1
						add %arg-2% to %arg-1% balance
						remove %arg-2% from %player% balance

Problem:
It says that
code_language.skript:
if player's balance is greather than %arg-2%:
is not an entity
Don't what i did wrong. It have to check if player's balance is bigger than %arg-2% so you can't overwrite your balance.
 
Remove the % %. Those are only used inside of variables and strings.
 
code_language.skript:
add arg-2 to arg-1's balance
remove arg-2 from player's balance
Literally told you this earlier. % % are only used in variables and strings. Also, you forgot to add 's to arg-1 and player.
 
  • Like
Reactions: noftaly
Status
Not open for further replies.