# Shops array system is not working

**URL:** <https://forum.makecode.com/t/shops-array-system-is-not-working/40170>\
**Category:** Help\
**Created:** [November 2, 2025, 1:08am UTC](https://forum.makecode.com/t/shops-array-system-is-not-working/40170 "2025-11-02T01:08:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cybercube](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cybercube/32/34628_2.png) [@Cybercube](https://forum.makecode.com/u/Cybercube)\
**Post date:** [November 2, 2025, 1:08am UTC](https://forum.makecode.com/t/shops-array-system-is-not-working/40170/1 "2025-11-02T01:08:12Z")

</div>

I’m currently remaking cookie clicker, but the shop **won’t score the items properly.**

By the way this is my first time using arrays in a game, I’m still learning how it works, but the bug kind of pissed me off.

Here the link to the game.

* * *

[https://arcade.makecode.com/S78281-17548-25058-36784](https://arcade.makecode.com/S78281-17548-25058-36784)

* * *

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [November 3, 2025, 6:43pm UTC](https://forum.makecode.com/t/shops-array-system-is-not-working/40170/2 "2025-11-03T18:43:01Z")

</div>

You could use enums, but their a JavaScript/python thing

---

<div class="post-metadata">

**Author:** ![Cybercube](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cybercube/32/34628_2.png) [@Cybercube](https://forum.makecode.com/u/Cybercube)\
**Post date:** [November 3, 2025, 7:10pm UTC](https://forum.makecode.com/t/shops-array-system-is-not-working/40170/3 "2025-11-03T19:10:00Z")

</div>

nah I fix it but thank you.
