Raised This Month: $23 Target: $400
 5% 

Settings API (load/save data to INI files)


Post New Thread Reply   
 
Thread Tools Display Modes
CryWolf
Senior Member
Join Date: Jul 2008
Location: Germany, Ulm
Old 08-05-2014 , 07:02   Re: Settings API (load/save data to INI files)
Reply With Quote #21

After leatest AMXX update the folowing string doesn't work anymore:
PHP Code:
amx_save_setting_string_arr 
And i don't know why it's not saving anymore and crashes server same in ZP5.0.8a with AMXX API FILE UPDATED, but for other old version of AMXX build like
Code:
amxmodx-1.8.3-dev-git3991
is still working!
This is the only string who does not work anymore , and crashes server with another functions who has nothing to do with it!

Hope someone will update it it's such a nice API for this AMXX version is not working / saving / loading
Code:
amxmodx-1.8.3-dev-git4156
Leatest at the moment!
__________________
I dont walk trough this world with fear in my heart.

Last edited by CryWolf; 08-05-2014 at 07:04.
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 11-02-2014 , 09:35   Re: Settings API (load/save data to INI files)
Reply With Quote #22

if i already have some data under some section and some key and i use this native with same key and same section with another array what will happen ?

Also how do i remove and entry from the .ini file without deleting the file ?
__________________
You will find everything u need :-
[CENTER][LEFT][LEFT] [CENTER]Accepting PAID Requests ! PM ME
Also back to helping people.
Catastrophe is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Location: Tunisia
Old 03-14-2015 , 11:58   Re: Settings API (load/save data to INI files)
Reply With Quote #23

is there is any stock version ?
__________________
JusTGo is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-14-2015 , 13:25   Re: Settings API (load/save data to INI files)
Reply With Quote #24

A stock is not suitable for something like that.
__________________
HamletEagle is offline
Allu Arjun
Junior Member
Join Date: Mar 2017
Location: Singapore
Old 03-24-2017 , 12:37   Re: Settings API (load/save data to INI files)
Reply With Quote #25

MeRcyLesS you can modify it to knifesounds.ini
Allu Arjun is offline
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 07-25-2018 , 22:17   Re: Settings API (load/save data to INI files)
Reply With Quote #26

Change:
Code:
SectionExists(file, setting_section[])
{
	// Seek to setting's section
	new linedata[96], section[64]	
	while (!feof(file))
	{
		// Read one line at a time
		fgets(file, linedata, charsmax(linedata))
		
		// Replace newlines with a null character
		replace(linedata, charsmax(linedata), "^n", "")
		
		// New section starting
		if (linedata[0] == '[')
		{
			// Store section name without braces
			copyc(section, charsmax(section), linedata[1], ']')
			
			// Is this our setting's section?
			if (equal(section, setting_section))
				return true;
		}
	}
	
	return false;
}
To:
Code:
SectionExists(file, setting_section[])
{
	// Seek to setting's section
	new linedata[96], section[64]	
	while (!feof(file))
	{
		// Read one line at a time
		fgets(file, linedata, charsmax(linedata))
		
		// Replace newlines with a null character
		replace(linedata, charsmax(linedata), "^n", "")
		
		// New section starting
		if (linedata[0] == '[')
		{
			// Store Section Name
			formatex(section, charsmax(section), "[%s]", setting_section)

			// Is this our setting's section?
			if(equal(linedata, section, strlen(section)))
				return true;
		}
	}
	return false;
}
For Fix this bug when save/load section with [ or ] chars:
https://imgur.com/u28wrhP
__________________
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
.egli
Junior Member
Join Date: Jul 2019
Location: Hamburg, Germany
Old 02-19-2020 , 12:25   Re: Settings API (load/save data to INI files)
Reply With Quote #27

I put the zp508a files and the zp_resources files on my linux server via ftp and start the server but the gamemode dont download. amxmodx 1.8.2 and metamod is installed.
.egli is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-19-2020 , 12:49   Re: Settings API (load/save data to INI files)
Reply With Quote #28

Quote:
Originally Posted by .egli View Post
I put the zp508a files and the zp_resources files on my linux server via ftp and start the server but the gamemode dont download. amxmodx 1.8.2 and metamod is installed.
How is all of that related to this thread? Please look carefully where you're posting and make sure you give enough information about the problem.
__________________

Last edited by OciXCrom; 02-19-2020 at 12:50.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:41.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode