antiblock
https://arwen2.global/
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
.SNiK

[Sysser] Number_Ex: Number(): First Argument Is Bigger Than Second Argument Xxxx -> Xxxx

1 post in this topic

Exemplo do erro:

SYSERR: Oct 24 08:24:23 :: number_ex: number (): first argument is bigger than second argument 21222 -> 6066, char_battle.cpp 664

Como resolver:

Bem este erro é provocado porque na coluna "gold_min" do nosso mob_proto é superior ao valor da coluna "gold_max"

E vocês agora pensão, "e se tiver 50 mobs com esse erro tenho de alterar de mob em mob?"

Não, basta introduzirem uma query que vos vo disponibilizar, que altera logo tudo ao mesmo tempo :)

- Vamos a Base De Dados, player, new query e corremos esta query:

UPDATE mob_proto SET gold_min=(CEILING(IF(gold_min<gold_max,FLOOR(gold_min*0.7),gold_max)));

- Corremos essa query e agora fazemos o mesmo para esta:

UPDATE mob_proto SET gold_min=0.9*gold_min

- E Com estas 2 query's temos o bug reparado ;)

Cumprimentos SNiK

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this