11.11.2018, 08:15
Sorry for bothering you, but I have another question.
Is this the correct way to fix this?
Код:
enum PlayerEnum { id, Float:health, Float:armour } new Vector:PlayerVector[PlayerEnum]; VECTOR_push_back_val(PlayerVector[id], 0); VECTOR_push_back_val(PlayerVector[health], 0.0); VECTOR_push_back_val(PlayerVector[armour], 0.0);
Код:
warning 213: tag mismatch: expected tag "Vector", but found none ("_") warning 213: tag mismatch: expected tag "Vector", but found "Float" warning 213: tag mismatch: expected tag none ("_"), but found "Float" warning 213: tag mismatch: expected tag "Vector", but found "Float" warning 213: tag mismatch: expected tag none ("_"), but found "Float"
Код:
enum PlayerEnum { id, Float:health, Float:armour } new Vector:PlayerVector[PlayerEnum]; VECTOR_push_back_val(Vector:PlayerVector[id], 0); VECTOR_push_back_val(Vector:PlayerVector[health], _:0.0); VECTOR_push_back_val(Vector:PlayerVector[armour], _:0.0);