Solved Failed to call Hook Loaded :(

Discussion in 'Rust Development' started by Onyx, Jul 7, 2015.

  1. Hey i've got a strange error when i'm trying to load my plugin ...

    Code:
    [Oxide] 8:05 PM [Info] Loaded plugin VoteKick v0.0.0 by Onyx
    version is 0.0.0
    [Oxide] 8:05 PM [Error] Failed to call hook 'Loaded' on plugin 'VoteKick' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 8:05 PM [Debug]   at System.Collections.Generic.Dictionary`2[System.String,System.Object].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.VoteKick.Loaded () [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
    I can't find why i've got this error.
    Tell me if you need me to post the function or something.

    Thank you for your help.
     
  2. Post your method; your indexing your dictionary when no key exist in said dictionary.
     
  3. Ow no it's ok it was my mistake with the config ... I didn't reload it .. ty