Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: KAKAN on Sep 06, 2015, 06:21 AM

Title: Ini things
Post by: KAKAN on Sep 06, 2015, 06:21 AM
Can anyone tell me the syntax and the use of this two functions?
1. WriteIniString
2. ReadIniString

I want this to save the skins, as i don't want my server full of DBs
Title: Re: Ini things
Post by: KAKAN on Sep 06, 2015, 06:22 AM
And how to remove a particular line in Ini, is it ClearIni? If yes, tell its syntax too
Title: Re: Ini things
Post by: Thijn on Sep 06, 2015, 09:16 AM
WriteIniString(filename, section, variable, value);
ReadIniString(filename, section, variable);
RemoveIniValue(filename, section, variable);
DeleteIniSection(filename, section);

Quote from: filename.ini[section]
variable=value
Title: Re: Ini things
Post by: DizzasTeR on Sep 06, 2015, 09:40 AM
INI's are not recommended personally from my side since any player having square bracket included in their name will fail to get his data saved.
Title: Re: Ini things
Post by: KAKAN on Sep 06, 2015, 09:50 AM
Oh, That's why it wasn't working? Anyways Topic LOCKED