Armor Break Bug

All Helbreath Server Source Discussion here.
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Slipknight wrote:
Slipknight wrote:
bone-you wrote: The iTargetH is the client id of the person being attacked while the iTemp is the item# in question about releasing it. If those vars do not exist, then pick the ones that represent them inside the function.
just looked at my code and he nailed it -_-
most ppl dont memorize the Ints, voids, and bools I just said that off my head.
What are you talking about? Oh, sorry. I forgot. You're not a coder so you have no idea how code even works. I wasn't clarifying your "code", I was explaining to him how it works in case he was doing something wrong in the call. When you call a function you don't define them with int/short/bool/etc. That'd cause redefinition errors. Some of us actually know what we're talking about. Those who don't generally are expected to sit back and just nod their head and agree since that's all they CAN do due to the fact that they can't code.
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
diwx
Outpost bitch
Posts: 513
Joined: Thu Dec 23, 2004 4:13 pm

Post by diwx »

Slipknight wrote:
Slipknight wrote:
bone-you wrote: The iTargetH is the client id of the person being attacked while the iTemp is the item# in question about releasing it. If those vars do not exist, then pick the ones that represent them inside the function.
just looked at my code and he nailed it -_-
most ppl dont memorize the Ints, voids, and bools I just said that off my head.
Image
:o :o


nothing personal tho :lol:
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

bone-you wrote:
Slipknight wrote:
Slipknight wrote: just looked at my code and he nailed it -_-
most ppl dont memorize the Ints, voids, and bools I just said that off my head.
What are you talking about? Oh, sorry. I forgot. You're not a coder so you have no idea how code even works. I wasn't clarifying your "code", I was explaining to him how it works in case he was doing something wrong in the call. When you call a function you don't define them with int/short/bool/etc. That'd cause redefinition errors. Some of us actually know what we're talking about. Those who don't generally are expected to sit back and just nod their head and agree since that's all they CAN do due to the fact that they can't code.
Im not a coder? Are you fucking stupid, because you never understand anything I say, so here lemme explain some more for the brainless moronic child who spams every forum im in because he think it makes him "l33t".

I was saying this because I refered too the wrong int name the first name jackass, and you didnt have too explain too him seeing as if he already brought it up himself he probably already understands, go back too your hole child, most people would recognize this, you know the ones with that thing called common sense, you probably dont know it since you dont even know the meaning of it.

Oh dont like the word child? In the words of eminem "suck my fucking dick"
You play child I play child eh?
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

diwx wrote:
Slipknight wrote:
Slipknight wrote: just looked at my code and he nailed it -_-
most ppl dont memorize the Ints, voids, and bools I just said that off my head.
Image
:o :o


nothing personal tho :lol:
:o system of down for t3h loose!! ACDC FOR t3h win! also you will see why that words in my sig soon :ph34r: .
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Slipknight wrote: Im not a coder? Are you fucking stupid, because you never understand anything I say, so here lemme explain some more for the brainless moronic child who spams every forum im in because he think it makes him "l33t".

I was saying this because I refered too the wrong int name the first name jackass, and you didnt have too explain too him seeing as if he already brought it up himself he probably already understands, go back too your hole child, most people would recognize this, you know the ones with that thing called common sense, you probably dont know it since you dont even know the meaning of it.

Oh dont like the word child? In the words of eminem "suck my fucking dick"
You play child I play child eh?
The immaturity meter just rose about 100 points on the one to ten scale.

You aren't a coder. Yes, you aren't. If I'm "fucking stupid" then you must be paramecium. You're still sad and upset that I owned you in the bandwidth topic. Stop taking your emotions out on me. Take them out on your so called "god".. he is the one who made you this way.. you know.. stupid, ugly, immature, egocentric, introverted.. etc. I spam every forum you're in? This is the only forum I know of that you're in. I am your so called "l33t". Haven't you figured it out by now? I'm more "l33t" than you ever could wish to become. I am the granddaddy of "l33tn355". I invented l33t 5p34k like I invented the internet and 9.95 gigabit lan lines.

Wrong thing+1? I don't see nor care how you got something wrong. All I see is you need to settle down kid. This is not the place for a "10 year old" to play. Want a more suitable place for your.. kind? try <a href='http://www.chuckecheese.com/' target='_blank'>http://www.chuckecheese.com/</a>

What if I don't want to go back to my "hole"? Common sense.. what is this you speak of? Is it retardation of the mind? In that case you have tons of it. Just like you say you do.. much more than me, I admit.

LOL I LOVE THE WORD CHILD. Too bad I'm not one.

Yes, Eminem would love for you to suck his fucking dick, and do it right. He says "suck my fucking dick you fucking faggot" which would fit you very well.. almost too well.

YOU PLAY CHILD I PLAY CHILD. Is this some type of new game? Can I play Child®? If that was intended as a sentence, rethink that then repost it. It makes no sense. Go ahead and play Child®, I think I'll pass. Unlike you, I have the mental capacity to know not to be as immature as you ;)

By the way, ACDC sucks.
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

bone-you wrote:
Slipknight wrote: Im not a coder? Are you fucking stupid, because you never understand anything I say, so here lemme explain some more for the brainless moronic child who spams every forum im in because he think it makes him "l33t".

I was saying this because I refered too the wrong int name the first name jackass, and you didnt have too explain too him seeing as if he already brought it up himself he probably already understands, go back too your hole child, most people would recognize this, you know the ones with that thing called common sense, you probably dont know it since you dont even know the meaning of it.

Oh dont like the word child? In the words of eminem "suck my fucking dick"
You play child I play child eh?
The immaturity meter just rose about 100 points on the one to ten scale.

You aren't a coder. Yes, you aren't. If I'm "fucking stupid" then you must be paramecium. You're still sad and upset that I owned you in the bandwidth topic. Stop taking your emotions out on me. Take them out on your so called "god".. he is the one who made you this way.. you know.. stupid, ugly, immature, egocentric, introverted.. etc. I spam every forum you're in? This is the only forum I know of that you're in. I am your so called "l33t". Haven't you figured it out by now? I'm more "l33t" than you ever could wish to become. I am the granddaddy of "l33tn355". I invented l33t 5p34k like I invented the internet and 9.95 gigabit lan lines.

Wrong thing+1? I don't see nor care how you got something wrong. All I see is you need to settle down kid. This is not the place for a "10 year old" to play. Want a more suitable place for your.. kind? try <a href='http://www.chuckecheese.com/' target='_blank'>http://www.chuckecheese.com/</a>

What if I don't want to go back to my "hole"? Common sense.. what is this you speak of? Is it retardation of the mind? In that case you have tons of it. Just like you say you do.. much more than me, I admit.

LOL I LOVE THE WORD CHILD. Too bad I'm not one.

Yes, Eminem would love for you to suck his fucking dick, and do it right. He says "suck my fucking dick you fucking faggot" which would fit you very well.. almost too well.

YOU PLAY CHILD I PLAY CHILD. Is this some type of new game? Can I play Child®? If that was intended as a sentence, rethink that then repost it. It makes no sense. Go ahead and play Child®, I think I'll pass. Unlike you, I have the mental capacity to know not to be as immature as you ;)

By the way, ACDC sucks.
you keep thinking w/e you want child but I know half your bull you talk isnt true.

Also if you act like a child then so will I.

btw I dont even read half your topics anymore as its mostly flames/stupid points you failed too make.
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
diwx
Outpost bitch
Posts: 513
Joined: Thu Dec 23, 2004 4:13 pm

Post by diwx »

Image
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

diwx wrote: Image
Amen brother!! Preach it!!!!
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Slipknight wrote: you keep thinking w/e you want child but I know half your bull you talk isnt true.

Also if you act like a child then so will I.

btw I dont even read half your topics anymore as its mostly flames/stupid points you failed too make.
I will keep thinking what I want. It's the liberty of being human. I can think what I want, when I want, however I want. Whether you believe it is none of my concern. My points are to make it so everyone else realizes how fucked up you are in the head, which I have done very well. All these posts I've made to you really don't matter. I never was really talking to you as I don't give a shit about you. If you've noticed, in 99% of my posts I've found flaws in your way of thinking, your "proof", your ideas, your everything.. and that has made up my posts. Want me to stop? Then stop giving me reasons to keep posting, and stop taking this into other topics.

I KNOW YOU ARE BUT WHAT AM I LOL!
You're 19, I'm 18, and you act more immature than I do. Pathetic.

Don't read them. Read point up above ^^ If you don't read them you should have no reason to reply. Truth revealed.
Amen brother!! Preach it!!!!
Why don't you practice that there and settle down kid.
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

your here to help me not argue :).

yes bone-you. mine dose look like that.. but in Slipknight code its calling for the sTarget.. how would i add that alos i want the iArmorTyp.. i want the it to call for thos :(.. i tryed too add them but.. it keeps haveing an error... i saw in the Armor strip of the hammer.. that its Short sTarget and int iArmorTyp.. how am i supos add thos.. keeps saying that i cant like add 4 ints or something...
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

i was wonder... is armor break spell supos to decress the Endurancy of the armor or is it supos to strip the armor off like hammer dose?
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

marleythe9 wrote: i was wonder... is armor break spell supos to decress the Endurancy of the armor or is it supos to strip the armor off like hammer dose?
1st one :)
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

Heres the void, if your usuing the original armor break and change this void it will work.

This will make the armor break spell strip all your armor at once.

Also if you don't want it to work if the user has PFM just add in the right checker in the spell define yourself because im too lazy to dig it up myself.

Code: Select all

void CGame::ArmorLifeDecrement(int iAttackerH, int iTargetH, char cOwnerType, int iValue)
{
	int iTemp;

	if (m_pClientList[iAttackerH] == NULL) return;
	switch (cOwnerType) {
	case DEF_OWNERTYPE_PLAYER:
  if (m_pClientList[iTargetH] == NULL) return;
  break;

	case DEF_OWNERTYPE_NPC:	return;
	default: return;
	}

	if (m_pClientList[iAttackerH]->m_cSide == m_pClientList[iTargetH]->m_cSide) return;

	iTemp = m_pClientList[iTargetH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_BODY];
	if ((iTemp != -1) && (m_pClientList[iTargetH]->m_pItemList[iTemp] != NULL)) {
  if ((m_pClientList[iTargetH]->m_cSide != 0) && (m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan > 0))	
  	m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan -= 50;
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);
  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMRELEASED, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);

  if (m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan <= 0) {
  	m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan = 0;
  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMLIFESPANEND, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);  
  }
	}

	iTemp = m_pClientList[iTargetH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_PANTS];
	if ((iTemp != -1) && (m_pClientList[iTargetH]->m_pItemList[iTemp] != NULL)) {


  if ((m_pClientList[iTargetH]->m_cSide != 0) && (m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan > 0))	
  	m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan -= 50;
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);
  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMRELEASED, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);

  if (m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan <= 0) {
  	m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan = 0;
  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMLIFESPANEND, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);  
  }
	}

	iTemp = m_pClientList[iTargetH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_LEGGINGS];
	if ((iTemp != -1) && (m_pClientList[iTargetH]->m_pItemList[iTemp] != NULL)) {

  if ((m_pClientList[iTargetH]->m_cSide != 0) && (m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan > 0))	
  	m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan -= 50;
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);
  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMRELEASED, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);

  if (m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan <= 0) {
  	m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan = 0;
  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMLIFESPANEND, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);  
  }
	}

	iTemp = m_pClientList[iTargetH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_ARMS];
	if ((iTemp != -1) && (m_pClientList[iTargetH]->m_pItemList[iTemp] != NULL)) {

  if ((m_pClientList[iTargetH]->m_cSide != 0) && (m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan > 0))	
  	m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan -= 50;
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);
  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMRELEASED, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);

  if (m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan <= 0) {
  	m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan = 0;
  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMLIFESPANEND, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);  
  }
	}

	iTemp = m_pClientList[iTargetH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_HEAD];
	if ((iTemp != -1) && (m_pClientList[iTargetH]->m_pItemList[iTemp] != NULL)) {

  if ((m_pClientList[iTargetH]->m_cSide != 0) && (m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan > 0))	
  	m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan -= 50;
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);
  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMRELEASED, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);

  if (m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan <= 0) {
  	m_pClientList[iTargetH]->m_pItemList[iTemp]->m_wCurLifeSpan = 0;
  	SendNotifyMsg(NULL, iTargetH, DEF_NOTIFY_ITEMLIFESPANEND, m_pClientList[iTargetH]->m_pItemList[iTemp]->m_cEquipPos, iTemp, NULL, NULL);
  	ReleaseItemHandler(iTargetH, iTemp, TRUE);  
  }
	}
}
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
Jaap
Loyal fan
Posts: 390
Joined: Thu Apr 22, 2004 8:21 am

Post by Jaap »

Slipknight wrote:Heres the void, if your usuing the original armor break and change this void it will work.
Here is the void? LOL!

<TeacherMode>

You posted a member function. Void is the return type of the member function. Void means "nothing", so the member function you posted doesn't return anything.

To be more specific, you posted a member function in the CGame scope (hence the scope-operator :: ). Meaning, this function is a member of the CGame class. You can call this function from every CGame instance you have created within your code, if it is not a static member function. In the last case, you can call this function without an instance of the CGame class.

The parameters of the member function you posted are, respectively,
int iAttackerH
int iTargetH
char cOwnerType
int iValue
They are passed to the function (through the stack), so they have a local scope to that function only. When the function ends, the local variables are removed from the stack.

</TeacherMode>

Hope we've learnt something today! :D

Edit: stupid smily appeared in the text where i dont want it
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

Jaap wrote:
Slipknight wrote:Heres the void, if your usuing the original armor break and change this void it will work.
Here is the void? LOL!

<TeacherMode>

You posted a member function. Void is the return type of the member function. Void means "nothing", so the member function you posted doesn't return anything.

To be more specific, you posted a member function in the CGame scope (hence the scope-operator :: ). Meaning, this function is a member of the CGame class. You can call this function from every CGame instance you have created within your code, if it is not a static member function. In the last case, you can call this function without an instance of the CGame class.

The parameters of the member function you posted are, respectively,
int iAttackerH
int iTargetH
char cOwnerType
int iValue
They are passed to the function (through the stack), so they have a local scope to that function only. When the function ends, the local variables are removed from the stack.

</TeacherMode>

Hope we've learnt something today! :D

Edit: stupid smily appeared in the text where i dont want it
Wow you really like being a annoying retard huh? I've never taken a class in this language or shit like that so I may not know every little thing about it, one thing I do know is I can do what I need to do fine. If you wanna be an annoying idiot and act like your Mr.super genius go somewhere else, but while your here try not being a total annoying retard.
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
Post Reply