Jump to content

Call Hook again :(

Closed 1.1.3

Hello Krungh,

i made a fresh install of the latest version and i have again the call hook error with every single player hit. Also there is no "You are taking on ...." Message and my translation file dosnt work.

08:49 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'BradleyTiers v1.1.3' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
  at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000ff] in <fb001e01371b4adca20013e0ac763896>:0
  at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <fb001e01371b4adca20013e0ac763896>:0
  at System.String.Format (System.String format, System.Object arg0) [0x00008] in <fb001e01371b4adca20013e0ac763896>:0
  at Oxide.Plugins.BradleyTiers.OnEntityTakeDamage (BradleyAPC bradley, HitInfo info) [0x0027d] in <eebeb3c6a58a4f9ab5912f85e934d123>:0
  at Oxide.Plugins.BradleyTiers.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003bb] in <eebeb3c6a58a4f9ab5912f85e934d123>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cc99cb05b42e4ea494cdf294badea406>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <99d545163fdd4d57a562df7989f2ca0a>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <99d545163fdd4d57a562df7989f2ca0a>:0

Share this comment


Link to comment

Hi, no copy of the original en file

{
  "Bradley": "Bradley",
  "Destroyed": "zerstörte erfolgreich einen",
  "Info": "\n<color=green>Verfügbare Befehle</color>\n<color=green>/bt info</color> : Shows info on version/author and commands",
  "InvalidInput": "<color=red>Gebe einen verfügbaren Befehl ein!</color>",
  "KillRewardMessage": "Du erhälst <color=#738d43>{0}</color>€ für das zerstören eines {1} Bradley",
  "Version": "Version : V",
  "NoPermission": "<color=green>Dir fehlt die Berechtigung!</color>",
  "AttackMessage": "Du kämpfst gegen einen {1} Bradley",
  "SpawnMessage": "Ein {0} wurde bei {1} gesichtet",
  "KillNotification": "<color=orange>{0}</color> Destroyed a {1} BradleyApc"
}

 

Share this comment


Link to comment

found the issue

  "AttackMessage": "Du kämpfst gegen einen {1} Bradley",

needs to be

  "AttackMessage": "Du kämpfst gegen einen {0} Bradley",

the {0} is the bradley type  the {1} in this case does not exist

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

81.9k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.