载入中...
赞了0个文件
写了4个评论
上传了0个视频
上传0个文件
0个跟随者
  • 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.

    2022年5月11日
  • 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.

    2022年5月11日
  • 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.

    2022年5月10日
  • 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

    2022年5月10日