SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/11/2019, 07:04 PM   #1
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 255
Reputation: 22
Default How to add a NEW line in Y_INI?

I want to make my logs system work via Y_INI instead of SAMP's file manager because it's much faster.

But, I realized that, instead of writing new lines, Y_INI re-writes it in one line every time because it thinks it has to set it to a variable that I didn't name.

So, how do I add a NEW line in Y_INI?
__________________

San Andreas Multiplayer server based off Counter Strike: Global Offensive.

Join us today!

DISCORD: discord.sa-go.info
WEBSITE: http://sa-go.info
SERVER IP: samp.sa-go.info
DomagojSellug is offline   Reply With Quote
Old 01/12/2019, 07:52 AM   #2
RoboN1X
Huge Clucker
 
RoboN1X's Avatar
 
Join Date: Feb 2011
Location: Indonesia
Posts: 435
Reputation: 128
Default Re: How to add a NEW line in Y_INI?

Give an incremental number in the property name.

Why you assume it is faster to do in Y_INI?

You want a writing log system, use the normal file append approach or create a database for it. SQLite / MySQL your choice, INI is more like choice for configuration or setting files (in fact INI means Initialization), not logs.
__________________
Need Help? Use Search, WIKI, and FAQ
RoboN1X is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Y_Ini only 1 line gets saved Dan. Scripting Help 5 19/07/2015 02:18 PM
how can i changgge this line into y_ini? PrinceKumar Scripting Help 2 01/10/2013 07:20 PM
[help] 1 line of y_ini to MySQL jose005 Scripting Help 4 28/09/2013 01:11 PM
y_ini line limit? 2KY Scripting Help 4 13/10/2012 01:34 PM
y_ini deleting line PaulDinam Scripting Help 3 28/09/2012 01:46 PM


All times are GMT. The time now is 01:38 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.