Thx you, now I understood what it was wrong.
Quote:
iArmouryIndex and id are never the same, even for the same weapon type. Why ?
What is the difference between a normal and a virtual function ? It doesn't count where I put the signature( in virtual functions or in the functions folder), it's working.
|
I will try to explain better what I need to know:
1.When I print it like this: "id: %i iArmouryIndex %i", id is different everytime and iArmouryIndex is the same. This makes me think that iArmouryIndex is the player id, and the id is the armoury index, so the function header should be( iArmouryIndex, id ). Is this right ?
Edit: Tested, it looks like the id is the second param. I still didn't figured why the armoury index is everytime different...
2. What is the difference between a "normal" function and a virtual one ?
__________________