Basically what is happening is that I am trying to use Client pref for some player settings for my plugin. What is happening is I'm using a hookevent (OnLoadoutReset = post_inventory_application) for resupply cabinets.
Since HookEvents don't come with a client argument I had to create my own:
new player = GetClientOfUserId(GetEventInt(event, "userid"));
Inside this I have If Statements everywhere which is relying on the Client Prefs but it says that my array must be indexed even though it is:
if (ZM_SettingsPref[player] == "normal")
I do not know how to solve this.