Quote:
Originally Posted by fysiks
What in the world are you talking about? Nothing in my code was assigned a value of 0, ever. You quoted my original post so you can easily see my original post here. Nowhere in the code is there ever a value of zero assigned to anything. Not a variable or a cell.
The only thing I ever changed was the index of the gPlayerClass array from 0 to id as you can see from when you quoted my original post.
The only thing I can think of is if you're not a native english speaker or are not familiar with basic coding terminology and you're getting confused between the difference of assigning a variable/cell a value and indexing an array.
At this point, we're going to have to agree to disagree (it's already gone much farther than it needed to) and move on.
|
gPlayerClass[] this is your cell without assign it to nothing
gPlayerClass[0] and this is your cell assigned to 0
*i tell ur mistake*
gPlayerClass[id] now u assigned it to id
what you did when you set it to 0 is not to assign an index, it is to assign nothing, until you assigned the index to id, you have to explain it with apples it seems so in stores
and if u have doubts i will repeat it:
Quote:
Originally Posted by fysiks
Code:
emit_sound(id, CHAN_ITEM, gSounds[gPlayerClass[0]], 1.0, ATTN_NORM, 0, PITCH_NORM);
|
Quote:
Originally Posted by fysiks
Nowhere in the code is there ever a value of zero assigned to anything.
|
assing or index it your mistake is the same, simply.