This code has many major mistakes. Like, you're trying to use items enum without creating it first.
PHP Code:
new extra_items[items]
enum _:items
{
i_name[31],
i_description[31],
i_cost,
i_team
}
Why are you creating the array in the native handler!?
PHP Code:
public native_vm_register_extra_item(const item_name[], const item_discription[], item_cost, item_team)
{
if(!items_database) items_database = ArrayCreate(items)
Why are you comparing an integer with a bitwise operator?
PHP Code:
if(g_team[id] & extra_items[i_team]) {
These are some of the many mistakes.
__________________