I really don't get how enum + multi-dimensional arrays should work together or i don't know but i thought this would work
PHP Code:
enum _: RegisterData
{
RD_SystemName,
RD_Name,
RD_Model,
RD_Health,
RD_Gravity,
RD_Speed,
RD_JumpVelocity,
RD_Gender,
RD_DeadSound[2],
RD_KillSound[2],
RD_HitSound[2]
}
new g_DataKeys[RegisterData][] = {
"",
"NAME",
"MODEL",
"HEALTH",
"GRAVITY",
"SPEED",
"JUMP_POWER",
"GENDER",
{"DEAD_SOUND1", "DEAD_SOUND2"},
{"KILL_SOUND1", "KILL_SOUND2"},
{"PAIN_SOUND1", "PAIN_SOUND2"},
}
Edit: Solved..
PHP Code:
enum _: RegisterData
{
RD_SystemName,
RD_Name,
RD_Model,
RD_Health,
RD_Gravity,
RD_Speed,
RD_JumpVelocity,
RD_Gender,
RD_DeadSound[2],
RD_KillSound[2],
RD_HitSound[2]
}
new g_DataKeys[RegisterData][] = {
"",
"NAME",
"MODEL",
"HEALTH",
"GRAVITY",
"SPEED",
"JUMP_POWER",
"GENDER",
"DEAD_SOUND1",
"DEAD_SOUND2",
"KILL_SOUND1",
"KILL_SOUND2",
"PAIN_SOUND1",
"PAIN_SOUND2"
}
And i have to use it like
PHP Code:
g_DataKeys[RD_DeadSound][0]