1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Some errors with AuctionHouse

Discussion in 'Plugin Help' started by ZentornX, Mar 7, 2017.

  1. ZentornX

    ZentornX Spider

    Messages:
    12
    when i'm starting the server i recive this error->
    10:47:31] [Server thread/INFO]: Loading DevTools v1.11.2
    [10:47:32] [Server thread/INFO]: Enabling DevTools v1.11.2
    [10:47:32] [Server thread/INFO]: Loading source plugin EconomyAPI v2.0.9
    [10:47:32] [Server thread/INFO]: Loading source plugin AuctionHouse v1
    [10:47:32] [Server thread/CRITICAL]: ParseError: "syntax error, unexpected 'and' (T_LOGICAL_AND), expecting :: (T_PAAMAYIM_NEKUDOTAYIM)" (EXCEPTION) in "/plugins/AuctionHouse-master/src/R4KT/AuctionHouse" at line 64

    The line 64 --> foreach ($this->auctions as $aucId => $aucData and $this->bids as $bidId => $bidData) {

    I made a issue on Github and he doesnt even respond.. Can anyone fix it?
     
  2. Primus

    Primus Zombie Pigman

    Messages:
    749
    That is an incorrect usage/syntax of foreach loop. You cant iterate through two arrays in one loop. Learn how to use it properly.
     
  3. ZentornX

    ZentornX Spider

    Messages:
    12
    I m the worst guy in php, thats why i asked for a fix.
     
  4. ZentornX

    ZentornX Spider

    Messages:
    12
    I dont even know to write on php, damn. Some help will be great
     
  5. Primus

    Primus Zombie Pigman

    Messages:
    749
    It's hundred percent failure if you go blind coding. Take some php lessons, and come back with that knowledge to finish original task.
     
    HimbeersaftLP likes this.
  6. ZentornX

    ZentornX Spider

    Messages:
    12
    i don't want to staying and take lessons, i just asked for a little fix, not for the moon.
     
  7. Primus

    Primus Zombie Pigman

    Messages:
    749
    It's not always that simple. Small things in code can impact whole project. Try showing us your code here, perhaps someone will correct you. Although we don't know what you expect it to do.
     
  8. ZentornX

    ZentornX Spider

    Messages:
    12
    This is the rep. https://github.com/R4KT/AuctionHouse
     
  9. Primus

    Primus Zombie Pigman

    Messages:
    749
    HimbeersaftLP likes this.
  10. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    if you are not a collaborator, this plugin may be not ready yet
    as for the fix, primus beat it to me for saying it
     
    HimbeersaftLP likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.