22.05.2017, 01:06
Quote:
Sorry for bumping my old thread but i found the solution, the problem was my enum it was like this
Код:
enum ePlaData { Float:plaHP, Float:plaArmz, plaKills = INVALID_SCORE, plaDeaths = INVALID_SCORE }; |
PHP код:
enum ePlaData
{
Float:plaHP, // 0
Float:plaArmz, // 1
plaKills = INVALID_SCORE, // normally 2 but overwritten with INVALID_SCORE
plaDeaths = INVALID_SCORE // also overwritten with INVALID_SCORE
};
Using ePlaData like that would create a (INVALID_SCORE + 1) sized array each time
To assign default values use the array initializer
PHP код:
new array[ePlaData] = { 0.0, 0.0, INVALID_SCORE, INVALID_SCORE };