Thread: Urgeant! Erorrs +REP +Thanks

Results 1 to 2 of 2
  1. #1 Urgeant! Erorrs +REP +Thanks 
    Registered Member
    Join Date
    Jan 2014
    Posts
    142
    Thanks given
    9
    Thanks received
    0
    Rep Power
    11
    So i tried adding this donor point shop but i get 81 errors

    if(c.myShopId == 29 || c.myShopId == 30 || c.myShopId == 31) {
    if (c.playerItemsN[Slot1] >= TotPrice2) {
    if (c.getItems().freeSlots() > 0) {
    buyDelay = System.currentTimeMillis();
    c.getItems().deleteItem(6529, c.getItems().getItemSlot(6529), TotPrice2);
    c.getItems().addItem(itemID, 1);
    Server.shopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1;
    Server.shopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0;
    if ((fromSlot + 1) > Server.shopHandler.ShopItemsStandard[c.myShopId]) {
    Server.shopHandler.ShopItems[c.myShopId][fromSlot] = 0;
    }
    } else {
    c.sendMessage("You don't have enough space in your inventory.");
    break;
    }
    } else {
    c.sendMessage("You don't have enough tokkul.");
    break;
    }
    }
    }
    else if(c.myShopId == 544) {
    if (c.DonorPoints >= TotPrice2) {
    if (c.getItems().freeSlots() > 0) {
    buyDelay = System.currentTimeMillis();
    c.DonorPoints -= TotPrice2;
    c.getItems().addItem(itemID, 1);
    Server.shopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1;
    Server.shopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0;
    if ((fromSlot + 1) > Server.shopHandler.ShopItemsStandard[c.myShopId]) {
    Server.shopHandler.ShopItems[c.myShopId][fromSlot] = 0;
    }
    } else {
    c.sendMessage("You don't have enough space in your inventory.");
    break;
    }
    } else {
    c.sendMessage("You don't have enough Donator Points.");
    break;
    }
    }


    Here is the error!

    Reply With Quote  
     

  2. #2  
    Enthimia Founder
    Ap4che's Avatar
    Join Date
    Jan 2014
    Posts
    180
    Thanks given
    0
    Thanks received
    65
    Rep Power
    30
    Suggested it before going to suggest it again, I highly recommend you use Eclipse. I have a left a link below on a guide on how to use it.

    https://www.moparscape.org/smf/index.php?topic=636090.0
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Rep++ & Thank
    By Infexis in forum Help
    Replies: 5
    Last Post: 04-22-2010, 07:03 AM
  2. Client Help =) Rep++ Thanks to
    By Kedd in forum Help
    Replies: 5
    Last Post: 03-22-2010, 06:04 PM
  3. Replies: 1
    Last Post: 02-17-2010, 08:05 PM
  4. [Will Rep++ & Thanks]Client Problem
    By Kedd in forum Help
    Replies: 2
    Last Post: 01-19-2010, 09:23 AM
  5. [DELTA] Need help, will Rep++, thanks.
    By Uhm Kyle in forum Help
    Replies: 11
    Last Post: 10-08-2009, 12:09 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •