Jump to content

Recommended Posts

  • Management

Hello

I'm having a problem:

SYSERR: Jul 21 15:30:50.469040 :: number_ex: number(): first argument is bigger than second argument 0 -> -1, cube.cpp 247

Line 247 from cube.cpp

CUBE_VALUE* CUBE_DATA::reward_value ()
{
	int		end_index		= 0;
	DWORD	reward_index	= 0;

	end_index = this->reward.size();
	reward_index = number(0, end_index);
	reward_index = number(0, end_index-1); //line 247

	return &this->reward[reward_index];
}

Anyone can help?

Thanks

raw

raw

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Premium
        first [reward_index = number(0, end_index);]
                                        argument (up there
is bigger than second argument 0 -> -1,

                reward_index = number(0, end_index-1); //line 24


First is end_index, second is end_index-1.
First > Second

And i dont think it has any use doing the same thing, so choose one by using comment

Link to comment
Share on other sites

  • Management

The problem is that the cube system wasn't made by me, if it is there must have a motive...

This is not crashing the core after all is just adding that line to syserr... But there's something crashing the core related to the cube system, but I asked to upgrade the same things and the server didn't crash again, so... I don't know...

raw

raw

Link to comment
Share on other sites

  • Premium
7 minutes ago, charparodar said:

The problem is that the cube system wasn't made by me, if it is there must have a motive...

This is not crashing the core after all is just adding that line to syserr... But there's something crashing the core related to the cube system, but I asked to upgrade the same things and the server didn't crash again, so... I don't know...

guessing is not a valid answer.

 

reward_index = number(0, end_index);
reward_index = number(0, end_index-1); //line 247

This makes no sence in my prespective, but if you want to keep them, your choice
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.