27.10.2018, 14:00
Thanks. And is it possible to set array like this?
If I try to compile this code, I get this warning:
Код:
enum PlayerEnum { id, Float:health, Float:armour } new PlayerData[][PlayerEnum] = { {1, 2.0, 3.0}, {4, 5.0, 6.0} }; new Vector:PlayerVector; for(new i = 0; i < sizeof(PlayerData); i += 1) { VECTOR_push_back_arr(PlayerVector, PlayerData[i]); }
Код:
warning 229: index tag mismatch (symbol "PlayerData"): expected tag none ("_"), but found "PlayerEnum"