Solved Check arg is balance or item

  • 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.

niznet

Member
Jan 28, 2017
41
2
0
Indonesia
Can check if arg is balance or item?
i want make quiz skript for my own server, maybe i will post it in resource too.

i already try find in skunity.
 
Can check if arg is balance or item?
i want make quiz skript for my own server, maybe i will post it in resource too.

i already try find in skunity.
You can just use [<text>] as an argument and then:
code_language.skript:
Set {_item} to arg parsed as item
Set {_item} to arg parsed as integer
 
You can just use [<text>] as an argument and then:
code_language.skript:
Set {_item} to arg parsed as item
Set {_item} to arg parsed as integer

hmm, sorry i still missundertanding....
i make cmd that to be: /quiz create <question> <answer> <item or money> <number>
 
hmm, sorry i still missundertanding....
i make cmd that to be: /quiz create <question> <answer> <item or money> <number>
code_language.skript:
Command /quiz create [<text>] [<text>] [<text>] [<text>]:
    Trigger:
        Set {_3} to arg 3 parsed as integer
        Set {_4} to arg 4 parsed as integer

But I don't understand what you will archive?
 
  • Like
Reactions: niznet
code_language.skript:
Command /quiz create [<text>] [<text>] [<text>] [<text>]:
    Trigger:
        Set {_3} to arg 3 parsed as integer
        Set {_4} to arg 4 parsed as integer

But I don't understand what you will archive?

sorry, i dont undestand what you mean...
im not good in english

i will try it
 
Do you speak German?
no, im from indonesia....

thx for explain the code, now i get new problem....

code_language.skript:
[20:24:47 ERROR]: can't understand this condition: 'player's balance is more tha
n {_4}' (QuizGame.sk, line 27: if player's balance is more than {_4}:')
 
no, im from indonesia....

thx for explain the code, now i get new problem....

code_language.skript:
[20:24:47 ERROR]: can't understand this condition: 'player's balance is more tha
n {_4}' (QuizGame.sk, line 27: if player's balance is more than {_4}:')
Try:
code_language.skript:
Is greater than
 
Status
Not open for further replies.