Register for your free account! | Forgot your password?

You last visited: Today at 15:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



loadsystem ini

Discussion on loadsystem ini within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 20
Received Thanks: 5
loadsystem ini

This would work as a proper load system?
I have tested it and works, but would it be fine?
Example for level and exp:
Code:
                    string CLevel;
                    CLevel = II.ReadString("Char", "Level");
                    C.Level = byte.Parse(CLevel);
                    string CExp;
                    CExp = II.ReadString("Char", "Experience");
                    C.Experience = ushort.Parse(CExp);
or what?

#edit

Im running into a problem.
How could I save/load the items if i do:
Save:
Code:
SW.WriteLine("Inventory=" + C.Inventory);
Load:
Code:
                    string CInv;
                    CInv = II.ReadString("Char", "Inventory");
                    //Load items here
or I should use a different methode?
BLASTER!!!! is offline  
Old 08/23/2010, 00:57   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
First of all, make this 1 line.
Basser is offline  
Old 08/23/2010, 09:59   #3
 
elite*gold: 0
Join Date: Aug 2010
Posts: 20
Received Thanks: 5
1line? o.O
BLASTER!!!! is offline  
Old 08/24/2010, 14:07   #4
 
devilsmum's Avatar
 
elite*gold: 0
Join Date: Jun 2006
Posts: 899
Received Thanks: 479
Quote:
Originally Posted by Basser View Post
First of all, make this 1 line.
Could you calarify?
devilsmum is offline  
Old 08/24/2010, 14:16   #5
 
elite*gold: 0
Join Date: Oct 2008
Posts: 342
Received Thanks: 66
example:

string CInv = II.ReadString("Char", "Inventory");

or:

Char.Inventory = II.ReadString("Char", "Inventory");


Depends on if u save the inv. as string
µ~Xero~µ is offline  
Reply




All times are GMT +1. The time now is 15:31.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.