Hello, 
On my Cruise Insim you can buy flowers and toys and sell them at houses.
That works and the selling also works. I want to make it that you can leave the server and re join and still have your flowers/toys. When you leave my server It Does save the flower/toy stats in the user.txt file but when you join it won't fetch that data.
Also this is my User File BTW
WORKS - Cash = 495031
WORKS - BBal = 1000
WORKS - Cars = UF1 XFG
WORKS - Distance = 1002441
WORKS - Health = 100
WORKS - Stat = 1
DOESN'T WORK - Flowers = 20
DOESN'T WORK - Toys = 0
DOESN'T WORK - JobsCompleted = 0
DOESN'T WORK - JobsAccepted = 0
DOESN'T WORK - FlowersSold = 0
DOESN'T WORK - ToysSold = 0
By DOESN'T WORK it saves it like i said but it won't read it and apply it to the users flowers etc on the server.
I am using LFS_External
Thanks
                
                    
            On my Cruise Insim you can buy flowers and toys and sell them at houses.
That works and the selling also works. I want to make it that you can leave the server and re join and still have your flowers/toys. When you leave my server It Does save the flower/toy stats in the user.txt file but when you join it won't fetch that data.
        static public int GetUserFlowers(string Username)
        {
            StreamReader Sr = new StreamReader(UserInfo + "\\" + Username + ".txt");
            string line = null;
            while ((line = Sr.ReadLine()) != null)
            {
                if (line.Substring(0, 6) == "Flowers")
                {
                    string[] Msg = line.Split('=');
                    Sr.Close();
                    return int.Parse(Msg[1].Trim());
                }
            }
            Sr.Close();
            return 0;
        }Also this is my User File BTW
WORKS - Cash = 495031
WORKS - BBal = 1000
WORKS - Cars = UF1 XFG
WORKS - Distance = 1002441
WORKS - Health = 100
WORKS - Stat = 1
DOESN'T WORK - Flowers = 20
DOESN'T WORK - Toys = 0
DOESN'T WORK - JobsCompleted = 0
DOESN'T WORK - JobsAccepted = 0
DOESN'T WORK - FlowersSold = 0
DOESN'T WORK - ToysSold = 0
By DOESN'T WORK it saves it like i said but it won't read it and apply it to the users flowers etc on the server.
I am using LFS_External
Thanks
 ?
?


