Jump to content

Recommended Posts

 Hello all.

Someone can give me some help in this code?

	if (!bFound)
	{
		TPacketGCEmpire pe;
		pe.bHeader = HEADER_GC_EMPIRE;
		pe.bEmpire = number(1, 3);
		d->Packet(&pe, sizeof(pe));
	}

I deleted the yellow empire from the client.

So here's another statement that a user who doesn't have a character just enters the Red and Blue empires.

 

pe.bEmpire = number(1, 3);

1 = Shinsoo

2 = Chunjo

3 = Jinno

 

But i only want the first and third, not the second.

Sorry for my very bad english.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Premium
1 hour ago, Chookez said:

 Hello all.

Someone can give me some help in this code?


	if (!bFound)
	{
		TPacketGCEmpire pe;
		pe.bHeader = HEADER_GC_EMPIRE;
		pe.bEmpire = number(1, 3);
		d->Packet(&pe, sizeof(pe));
	}

I deleted the yellow empire from the client.

So here's another statement that a user who doesn't have a character just enters the Red and Blue empires.

 

pe.bEmpire = number(1, 3);

1 = Shinsoo

2 = Chunjo

3 = Jinno

 

But i only want the first and third, not the second.

Sorry for my very bad english.

Well..

 

You can pull out the Turkish Dev from within you and write:

pe.bEmpire = number(1, 2) == 1 ? 1 : 3;

 

Edited by Syreldar
  • Love 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

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.