what's wrong this?

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

Phone_KR

Member
Dec 19, 2024
2
0
1
25
Code:
on inventory click:
    if inventory name is ":offset_-8::withdraw_lolam:":
        cancel event
        if event-inventory is not player's inventory:
            if clicked slot is 41 or 42:
                play sound "BLOCK_NOTE_BLOCK_BIT" with volume 1 and pitch 2 at player
                if number of all air slots in player's inventory is not smaller than ceil({coin} / 64) + ceil({bill} / 64) + ceil({bundle_of_bills} / 64):

(error: inventory of the player is not a world)
if number of all air slots in player's inventory is not smaller than ceil({coin} / 64) + ceil({bill} / 64) + ceil({bundle_of_bills} / 64):


i don't know why this isn't worked

what's the error mean?

help....
 
Last edited:
I could find the similar sentences in skunity-docs-'can hold'......
It took 2 hours to find.

I changed it as follows:
if player has enough space for {coin} of itemsadder item "paper_custom:coin":
if player has enough space for {bill} of itemsadder item "paper_custom:bill":
if player has enough space for {bundle_of_bills} of itemsadder item "paper_custom:bundle_of_bills":

It be consistent with my intention.
 
Last edited: