Y_ini: leaving a space just before tags?
#9

Quote:
Originally Posted by Mionee
Посмотреть сообщение
Actually, you can, but it ends up messing up the tags :P. I assume you'll have to edit y_ini's way of defining tags which isn't really recommended.

This:

pawn Код:
public OnGameModeInit()
{
    new
    INI:ini = INI_Open("myini.ini");
    INI_SetTag(ini, "LVDM");
    INI_WriteString(ini, "NAME", "******");
    INI_SetTag(ini, "\r\nPD");
    INI_WriteString(ini, "GENDER", "Male");
    INI_Close(ini);
    return 1;
}
Outputs:

Код:
[LVDM]
NAME = ******
[
PD]
GENDER = Male
He does not want multiple tags, that is what he is trying to say, how ever he did not word his request properly.

He wants this:
Код:
[User] <-- actual tag
Name = Test

[Position] <-- not a tag, manual string
x = 1.1
Y = 2.2
Z = 2.2
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)