Quote:
Originally Posted by Bugsy
It will assign a new skill at random regardless of order as defined in the enum. I am not sure what you mean by the number of skills increasing by register native. You'd need to show more code
|
PHP Code:
Public Native_Register_Skill(plugin_id, plugin_param)
{
new s_Name[32], s_Desc[32], funcid_get;
get_string(1, s_Name, charsmax(s_Name);
get_string(2, s_Desc, charsmax(s_Desc);
funcid_get = get_param(3)
ArrayPushString(Skill_Name, s_Name)
...
...
g_TotalSkill++
return g_TotalSkill-1
}
This is what I mean. The skill is from a separate plugin and will register to main plugins via this native.
So I can't use enum as it is predetermine.
__________________