• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Leading 0's error

  • 224
    Posts
    9
    Years
    • Seen Feb 20, 2025
    So this might sound a bit weird, but I just tested it in clean v17.1.

    Used in an event, this single line works fine:
    Code:
    pbSetSelfSwitch([COLOR="red"]003[/COLOR],"A",true,2)

    Whereas this one doesn't:
    Code:
    pbSetSelfSwitch([COLOR="Red"]008[/COLOR],"A",true,2)

    It returns the following error:
    Spoiler:


    It looks like some Event numbers return this error (the only thing to change to reproduce this is to try different Event numbers).
    I tested some more or less random numbers.
    Those numbers return the error message:
    008,009,018,029,087,097
    Those are working fine:
    007,026,047,052,100,118

    I have no idea why it gives different results, but reproducing this should not be too hard.
     
    Last edited by a moderator:
    So this might sound a bit weird, but I just tested it in clean v17.1.

    Used in an event, this single line works fine:
    Code:
    pbSetSelfSwitch([COLOR="red"]003[/COLOR],"A",true,2)

    Whereas this one doesn't:
    Code:
    pbSetSelfSwitch([COLOR="Red"]008[/COLOR],"A",true,2)
    You don't need leading zeroes for numbers. Just say 8 rather than 008.
     
    Back
    Top