1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Return integer

Discussion in 'Skript' started by MrNygus, Oct 22, 2020.

Thread Status:
Not open for further replies.
  1. MrNygus

    MrNygus Active Member

    Joined:
    Jan 28, 2017
    Messages:
    115
    Likes Received:
    2
    I have code:

    Code (Text):
    1.  
    2. function testowy(ilosc: integer) :: integer:
    3.     set {_wynik} to {_ilosc} * 1
    4.     return {_wynik}
    5.  
    6. command /testowy <integer>:
    7.     trigger:
    8.         set {_obliczone} to testowy(arg-1)
    9.         send "%{_obliczone}%" to player
    10.  
    I get <none>
    /testowy 10
    What's wrong?
     
    #1 MrNygus, Oct 22, 2020
    Last edited: Oct 22, 2020
  2. Best Answer:
    Post #2 by CUrrUpt Enxo, Oct 22, 2020
  3. CUrrUpt Enxo

    CUrrUpt Enxo Member

    Joined:
    Jul 26, 2019
    Messages:
    21
    Likes Received:
    0
    try changing integer to number see if that does anything
     
  4. MrNygus

    MrNygus Active Member

    Joined:
    Jan 28, 2017
    Messages:
    115
    Likes Received:
    2
    that's works but why!? xd
     
Thread Status:
Not open for further replies.

Share This Page

Loading...