I get an error when the script complies. Look at pic.
$ShopItemStack = new ScriptObject(){class = ShopItemStackSO;count = 0;};
$NewItemName
function serverCmdNewShopItem(%client, $NewItemName){
$ShopItemStack.addValue($NewItemName)
messageClient(%client, "", $NewItemName, "Has been added to the shop item list");
}
function serverCmdSeeShopItems(%client,){
$ShopItemStack.dumpStack();
}