Raised This Month: $51 Target: $400
 12% 

Multiple line in .ini file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Desure
Junior Member
Join Date: Jun 2022
Old 06-13-2022 , 17:07   Multiple line in .ini file
Reply With Quote #1

Hello, i somehow manage to make amx_ss to save logs in a .ini file, but he save only the last command.

How can i make to save all of the action in that file?

source code
Desure is offline
Desure
Junior Member
Join Date: Jun 2022
Old 06-13-2022 , 17:08   Re: Multiple line in .ini file
Reply With Quote #2

https://pastebin.com/NQvf3J11
Desure is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-14-2022 , 22:00   Re: Multiple line in .ini file
Reply With Quote #3

Change the fopen() mode from "w+" to "a+" so that it will append to the file instead of overwriting it. You can read more about fopen() here.

P.S. a post like this is more appropriate in the Scripting Help forum.
__________________

Last edited by fysiks; 06-14-2022 at 22:02.
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 02:59.


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