Jump to content

Wrong location message

Closed 1.1.0

Omega
Omega

Posted

Hi,

since 1.1.0 igot the following message. Theres the tier instead of location.

A Hard Bradley has spawned around Hard

 

Code in lang file

A <color=#cf3c4d>Hard</color> Bradley has spawned around <color=red>{0}</color>

Krungh Crow

Posted (edited)

ah i see what happened

{0}  is  the bradleytier that will change the name if changed in cfg
{1} is the location

so in your case you change the {0} into {1}
 

  "BradVanilla": "A <color=#EC1349>{0}</color> Bradley has spawned around <color=#EC1349>{1}</color>",
  "BradEasy": "A <color=green>{0}</color> Bradley has spawned around <color=green>{1}</color>",
  "BradMedium": "A <color=purple>{0}</color> Bradley has spawned around <color=blue>{1}</color>",
  "BradHard": "A <color=red>{0}</color> Bradley has spawned around <color=red>{1}</color>",
  "BradNightmare": "A <color=yellow>{0}</color> Bradley has spawned around <color=yellow>{1}</color>",

section from cfg
 

  "Tier Names": {
    "Vanilla": "Normal",
    "Easy": "Noob",
    "Medium": "Intermediate",
    "Hard": "Tough",
    "Nightmare": "Zombie"
  },

the names above will change in the message from language file {0} without the need to edit the language file to change the names

Edited by Krungh Crow
Omega

Posted

Thanks for fast reply. And how about economics? Is this {0} too.

 

Krungh Crow

Posted

  "KillRewardMessage": "You recieved {0}$ for Destroying the {1} BradleyApc",

yes goes same way 
{0} is value of economics
{1} Is bradleytier

Omega

Posted

Thank you very much!

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.1k
Customers served
Files Sold
159.4k
Total sales
Payments
3.4m
Processed total
×
×
  • 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.