Small question!
#1

hey i needed to write upto 15 different logs for my server so i want to know that

Which one is good for log writing dini or Y_ini?
Reply
#2

y_ini
Reply
#3

i just added 25 lines of Y_ini in gamemode for log writing and gm size 5 mb increased! its normal?
Reply
#4

Quote:
Originally Posted by Ryz
Посмотреть сообщение
i just added 25 lines of Y_ini in gamemode for log writing and gm size 5 mb increased! its normal?
ye that's normal.
if you include y_ini, following files also get included (by y_ini)

Код:
internal/y_version (also including a_http here, version checks)
internal/y_natives
internal/y_globaltags
y_scriptinit
y_utils
y_debug
internal/y_funcinc
y_amx
y_bit
y_cell
y_inline
y_malloc
y_hooks
internal/y_unique
y_hooks/impl
internal/y_plugins
y_als
ppl often freak out about the file size after including YSI ^^
but all that stuff is necessary for everything to work the way it should.
Reply
#5

ohh ok ty
Reply
#6

If you need simple logs, you can use this (it was not made by me):
pawn Код:
stock Log(sz_fileName[], sz_input[]) {

    new sz_logEntry[156], i_dateTime[2][3], File: fileHandle = fopen(sz_fileName, io_append);
    gettime(i_dateTime[0][0], i_dateTime[0][1], i_dateTime[0][2]);
    getdate(i_dateTime[1][0], i_dateTime[1][1], i_dateTime[1][2]);
    format(sz_logEntry, sizeof(sz_logEntry), "[%i/%i/%i - %i:%i:%i] %s\r\n", i_dateTime[1][0], i_dateTime[1][1], i_dateTime[1][2], i_dateTime[0][0], i_dateTime[0][1], i_dateTime[0][2], sz_input);
    fwrite(fileHandle, sz_logEntry);
    return fclose(fileHandle);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)