Quote:
Originally Posted by fysiks
If you made the change I suggested (adding the []) then I don't see anything wrong. You have RANKS indexed correctly for what it is being used for.
|
Oh yeah. Your correct. It's the problem with the EXP.
PHP Code:
new const EXP[][]=
{
0, // 0
0, // 1
50, // 2
100, // 3
200, // 4
400, // 5
800, // 6
1600, // 7
3200, // 8
6400, // 9
12800, // 10
25600, // 11
51200, // 12
102400, // 13
204800, // 14
409600, // 15
819200, // 16
1638400, // 17
3276800, // 18
6553600 // 19
}
I don't think we need 2 [] right, because it doesn't have quotes and it compiles fine with one []
PHP Code:
if(iXP[iKiller] >= EXP[iRank[iKiller]] && iRank[iKiller] < 19)