Indlæser...
0 filer liked
4 kommentare
0 videoer
0 uploads
0 følgere
  • Default

    @mcal9909 By the way, very good script, you should continue editing the script and make new changes to it, since I have seen several lines in your code that still do not work, but it looks interesting.

    11. maj 2022
  • Default

    @mcal9909 If it is the most recent version that is LSLife_0_2_46a, I only tell you nothing more than the error of the OZ Cocaines does not save in the characters of LSLifeSave.xml because there is an error in LSMenus.cs
    On the line.
    if (item == LSL.takeCocainOzVeh)
    {
    LsFunctions.pCocaineOunce += LSL.takeCocainOzVeh.Value;
    LSL.pStashVehicle.drugCarCocainOz -= LSL.takeCocainOzVeh.Value;
    LSL.takeCocainOzVeh.Maximum -= LSL.takeCocainOzVeh.Value;
    LSL.LSLifeSave = XDocument.Load("scripts\\LSLife\\LSLifeSave.xml");
    foreach (XElement item17 in LSL.LSLifeSave.Descendants())
    {
    if (item17.Name == "playerInventory")
    {
    foreach (XElement item18 in item17.Elements())
    {
    if (item18.Name == "cocainOz")
    {
    item18.Value = LsFunctions.pCocaineOunce.ToString();
    break;
    }
    }
    }
    if (!(item17.Name == "drugCarStash"))
    {
    continue;
    }
    foreach (XElement item19 in item17.Elements())
    {
    if (item19.Name == "cocainOz")
    {
    item19.Value = LSL.pStashVehicle.drugCarCocainOz.ToString();
    break;
    }
    }
    }
    LSL.LSLifeSave.Save("scripts\\LSLife\\LSLifeSave.xml");
    }

    if (item18.Name == "cocainOz"), it should be if (item18.Name == "cocaineOz"), only missing the letter "e", it is a simple view error.

    11. maj 2022
  • Default

    I already looked at your code, I don't know if other users have noticed the error or not.
    The error is in LsMenu.cs in the if line (item == LSL.takeCocainOzVeh), a variable was missing a single letter.

    Before it was:
    if (item17.Name == "playerInventory")
    {
    foreach (XElement item18 in item17.Elements())
    {
    if (item18.Name == "cocainOz")
    {
    item18.Value = LsFunctions.pCocaineOunce.ToString();
    break;
    }
    }
    }

    You should put the letter "e" in "cocainOz" since in the xml it saves in "cocaineOz" with the letter "e".

    Excuse the bad english.

    10. maj 2022
  • Default

    @mcal9909 Bug in the <cocaineOz>0</cocaineOz>, it does not save in any way, if you pick up <cocaineOz></cocaineOz> from an order or from the trunk of the vehicle, in the player's inventory it is saved 0 whatever it is, it is a minor but necessary error.

    sorry for my bad english

    10. maj 2022