Bug script does not deliver purchase points

Asked

Viewed 35 times

-1

Hello good people I use Modern acc I am using a buy and sell system it removes the points from the database of the account and keeps in a table in the same way representing an offer at auction but in case I buy direct without bidding at the time of making the character exchange by points does not happen this only removes the points of who spent he wins the character but who sold does not receive the points for the sale and a mistake.

the system is a page in php I’ll be posting here

as the code is too big I put on this site to not get giant

https://hastebin.com/ajegobosaf.xml

Error print

inserir a descrição da imagem aqui

1 answer

1


The error says the key buy_know is not set to be accessed in any variable. More specifically in this variable: $auctionInfo['buy_know']). You probably wanted to type $auctionInfo['buy_now'])

The error is on this line:

   $finishedAuctionOwner->setPremiumPoints($finishedAuctionOwner->getPremiumPoints() + $auctionInfo['buy_know']);
  • 1

    I think that’s it too! + 1

  • 1

    thank you very much Andrei and rabbit helped me very much was that the problem a wrong letter sorry take the time of you

  • @Quiet Brunds. This really happens.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.