Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 13:01

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

Advertisement



[HELP]xD help with thsi plz

Discussion on [HELP]xD help with thsi plz within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
[HELP]xD help with thsi plz

um ok the binrys are geting boring so im gona go back to lotf xD i just want to no somting what is the best way of saving to a ini file
any help here any one??

i may try to code my own sources after i larn a lil more about c#
taylor2846 is offline  
Old 03/10/2009, 23:15   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Open NotePad

File Save As...

Change TEXT to None

Then Do

Test.ini

and your done
PeTe Ninja is offline  
Old 03/10/2009, 23:23   #3
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
Ini.Write("Account", "Username", "OPisFag");
kinshi88 is offline  
Old 03/10/2009, 23:25   #4
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
The popular choice is to use the Windows registry functions for the Windows ini format.
GetPrivateProfileString/Int/Section/Struct and WritePrivateProfileString/Section/Struct. (use for the C# definitions, or look at some existing sources here).

There are some already written managed Ini file APIs around the interwebz, but note that there's not any one strict standard for an "ini" file, so results may differ from the Windows registry format.

I've said plenty of times already, but I'll reiterate again. Ini files aren't the best solution for your task, whatever it is (They're outdated, unstandardised, unmaintainable ****). Use a database and SQL if you want a solution that you can work with.
unknownone is offline  
Thanks
1 User
Old 03/11/2009, 00:33   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Question here... how can you make something update ini files

like update the config file

i made a control panel for my source and i want it so i can do edit current rates they click on it and text or whatever comes up , and if they type in and click change it will update the ini files

can you help me with the updating ini files?
PeTe Ninja is offline  
Old 03/11/2009, 00:54   #6
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
Quote:
Originally Posted by PeTe Ninja View Post
Question here... how can you make something update ini files

like update the config file

i made a control panel for my source and i want it so i can do edit current rates they click on it and text or whatever comes up , and if they type in and click change it will update the ini files

can you help me with the updating ini files?
Alright, say the Config file looks like:

[Config]
DropRate=10


To change it, just write to it.
Ini.Write("Config", "DropRate", "20");
kinshi88 is offline  
Old 03/11/2009, 03:55   #7
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
xD i has a console comand like that lol
taylor2846 is offline  
Reply




All times are GMT +2. The time now is 13:01.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.