SA-MP Forums Archive
y_ini deleting line - 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 deleting line (/showthread.php?tid=381134)



y_ini deleting line - PaulDinam - 28.09.2012

How can i delete lines with y_ini

if i have these lines inside the file:
pindex = 0
pmodelid = 18632
pboneid = 2
pfOffsetX = 0.000000
pfOffsetY = 0.000000
pfOffsetZ = 0.000000
pfRotX = 0.000000
pfRotY = 0.000000
pfRotZ = 0.000000
pfScaleX = 1.000000
pfScaleY = 1.000000
pfScaleZ = 1.000000


Re: y_ini deleting line - Emmet_ - 28.09.2012

pawn Код:
new
    INI:ini = INI_Open(filename);
INI_RemoveEntry(ini, "pindex");
INI_RemoveEntry(ini, "pmodelid");
INI_RemoveEntry(ini, "pboneid");
INI_RemoveEntry(ini, "pfOffsetX");
INI_RemoveEntry(ini, "pfOffsetY");
INI_RemoveEntry(ini, "pfOffsetZ");
INI_RemoveEntry(ini, "pfRotX");
INI_RemoveEntry(ini, "pfRotY");
INI_RemoveEntry(ini, "pfRotZ");
INI_RemoveEntry(ini, "pfScaleX");
INI_RemoveEntry(ini, "pfScaleY");
INI_RemoveEntry(ini, "pfScaleZ");
INI_Close(ini);



Re: y_ini deleting line - PaulDinam - 28.09.2012

thank you sir


Re: y_ini deleting line - PaulDinam - 28.09.2012

toys.pwn(390) : error 017: undefined symbol "ini"