AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Save and loat with .ini file (https://forums.alliedmods.net/showthread.php?t=173199)

Killer zm 12-02-2011 03:06

Save and loat with .ini file
 
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.

fysiks 12-02-2011 03:35

Re: Save and loat with .ini file
 
Look into using nVault. There are tutorials about it in the Tutorials forum.

Killer zm 12-02-2011 04:34

Re: Save and loat with .ini file
 
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.

fysiks 12-03-2011 00:35

Re: Save and loat with .ini file
 
Quote:

Originally Posted by Killer zm (Post 1606193)
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.


All times are GMT -4. The time now is 08:24.

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