Y_Ini only 1 line gets saved - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_Ini only 1 line gets saved (
/showthread.php?tid=582262)
FIXED. -
Dan. - 19.07.2015
FIXED.
Re: Y_Ini only 1 line gets saved -
gurmani11 - 19.07.2015
Код:
format(time, sizeof(time), "[%02d/%02d/%d] %02d:%02d:%02d\n", Day, Month, Year, Hour, Minute, Second);
Re: Y_Ini only 1 line gets saved -
Dan. - 19.07.2015
Quote:
Originally Posted by gurmani11
Код:
format(time, sizeof(time), "[%02d/%02d/%d] %02d:%02d:%02d\n", Day, Month, Year, Hour, Minute, Second);
|
That does nothing I'm afraid. Adding a \n doesen't help. I'm pretty sure the time and the message can be on 1 line.
Re: Y_Ini only 1 line gets saved -
Krokett - 19.07.2015
Seeing as there is no append function, you first have to load the data and store it in a variable. Then you would have to concatenate the new log entry with the stored variable and then you can save that variable.
Re: Y_Ini only 1 line gets saved -
Dan. - 19.07.2015
There might be 1000+ lines in the log one time.. so I need to store that in a variable? Maybe there's still away just to add 1 line.
Re: Y_Ini only 1 line gets saved -
PrinceKumar - 19.07.2015
that code working fine for me . No issue