Try something a bit more unique for the keys that isn't numbers.
AutoBroadcast
Moved
Total Downloads: 8,943 - First Release: Oct 26, 2014 - Last Update: Feb 27, 2017
- 5/5, 20 likes
-
Wulf Community Admin
-
I've tried only texts and the same error happens
{
"This": "We're testing",
"Testing": "Just for test",
"Test": "Another test",
"Just": "Testing the test"
} -
Wulf Community Admin
-
-
Wulf Community Admin
-
-
Hello Wulf. I do really appreciate your effort. I installed your plugin 12 hours ago. I have been trying to fix this issue since then with no avail.
I have edited the "example" messages in the code itself to (Just part of your code):
Code:void OnServerInitialized() { LoadDefaultConfig(); if (lang.GetLanguages(this).Length == 0 || lang.GetMessages(lang.GetServerLanguage(), this)?.Count == 0) { lang.RegisterMessages(new Dictionary<string, string> { "Message1": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla.", "Message2": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla.", "Message3": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla", "Message4": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla", "Message5": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla", "Message6": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla" }, this, lang.GetServerLanguage()); }
Code:{ "Message1": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla", "Message2": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla", "Message3": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla", "Message4": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla", "Message5": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla", "Message6": "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla" }
What seems to be wrong?
Regards, -
Wulf Community Admin
-
I'm pretty sure these "example" messages don't exist anywhere. I adjusted the files one by one and to my surprise that message is still broadcasting from god knows where
This might help:
Code:Line 96: 13:52 [Info] AutoBroadcast was compiled successfully in 1817ms Line 97: 13:52 [Info] Loaded plugin AutoBroadcast v1.0.8 by Wulf/lukespragg Line 117: 14:23 [Error] Error while compiling: AutoBroadcast.cs(83,66): error CS1525: Unexpected symbol `Random' Line 307: 16:43 [Error] Error while compiling: AutoBroadcast.cs(83,66): error CS1525: Unexpected symbol `Random'
-
Wulf Community Admin
-
Can i put colour on the mesages or no ?
-
Wulf Community Admin
Unity:
Code:<color=red>Hi</color>
Code:<color=#FF0000>Hi</color>
Code:[#FF0000]Hi[/#]
-
Suggestion* add an option to be able to run the prefix in order to send a command for other plugins. (for my example) I'm considering adding some commands in my in game shop and when a player buys something it could announce a global chat message saying "Someone just bought a random heli" or something just by executing in console something like this:
Code:{ "ExampleMessage": "This is an example. Change it, remove it, translate it, whatever!", "AnotherExample": "This is another example, notice the comma at the end of the line above..." }
ab.ExampleMessage run
then shoots a message like "This is an example. Change it, remove it, translate it, whatever!" in chat -
It shows only te Default Examples--Meg's. I edit it in the /en folder, still the same msg. cant change it...
-
Wulf Community Admin
-
all i did was editing the data in the folder lang/en.
-
Wulf Community Admin
-
Hey man,
i loaded ur plugin and it works finr with one message. if i added second one and randomize Messages ist only shoes the second. ok i dod something wrong i thougth. but after deleting config, lang and .cs file and loading the plugin new it still Shows the old second message but there is defaultmassege in lang :-/
did i missed something?
best regards -
Wulf Community Admin
-
best regards