Raised This Month: $ Target: $400
 0% 

Save and loat with .ini file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Killer zm
Senior Member
Join Date: Jun 2011
Old 12-02-2011 , 03:06   Save and loat with .ini file
Reply With Quote #1

I want to know how to save with .ini file somenthing and load from there.
I want to work with amx_setings_api from zp.50 beacause is more easy.
So i want to save the name of the player and the ammo-packs that he make it in game playing, and i want to save when player disconect and when the map is changed and when player connect load from ini wat was saved. Please help me how to script this.

Last edited by Killer zm; 12-02-2011 at 03:09.
Killer zm is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-02-2011 , 03:35   Re: Save and loat with .ini file
Reply With Quote #2

Look into using nVault. There are tutorials about it in the Tutorials forum.
__________________
fysiks is offline
Killer zm
Senior Member
Join Date: Jun 2011
Old 12-02-2011 , 04:34   Re: Save and loat with .ini file
Reply With Quote #3

nvault save file in format .ini ?? because i saw nvault how it work and i want to try save and load ammo packs on file with format .ini.

Last edited by Killer zm; 12-02-2011 at 04:35.
Killer zm is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-03-2011 , 00:35   Re: Save and loat with .ini file
Reply With Quote #4

Quote:
Originally Posted by Killer zm View Post
nvault save file in format .ini ?? because i saw nvault how it work and i want to try save and load ammo packs on file with format .ini.
There is no standard format for a .ini file in the context of AMX Mod X. It's just a plain old text file. Look at the tutorials for reading from and writing to files if you refuse to use a system that is designed really well for what you are trying to do. If you try to do it without it will by 10 times the work.
__________________
fysiks is offline
Reply



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 08:25.


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