y_INI help. - 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 help. (
/showthread.php?tid=344219)
y_INI help. -
Night Dreamer - 20.05.2012
I already have a file writed
PHP код:
a = 1
b = Branza
c = -1
d = 0xFFFFFFFF
I wanna to re-write c to 999
PHP код:
new INI:File = INI_Open(_szOldPathFile);
INI_WriteInt(File,"c", 999);
INI_Close(File);
The problem is not re-write the 'c' is write another one on the first line
PHP код:
c = 999
a = 1
b = Branza
c = -1
d = 0xFFFFFFFF
Re: y_INI help. -
Faisal_khan - 20.05.2012
Delete c = -1
pawn Код:
a = 1
b = Branza
d = 0xFFFFFFFF
Re: y_INI help. -
Night Dreamer - 20.05.2012
re-write != Delete
Re: y_INI help. -
Night Dreamer - 21.05.2012
any idea some one ? ******... are you there ?
and I have a new question who i write value from file +1000
PHP код:
new INI:File = INI_Open(g_PropertiesFlags[propid][szOwnerName]);
INI_WriteInt(File,"Cash", += intPropPrice);
INI_Close(File);
if I have
PHP код:
a = 1
b = Branza
c = -1
d = 0xFFFFFFFF
I want to write "a += 5" that it will be 6
Re: y_INI help. -
Night Dreamer - 21.05.2012
Still no one have any idea about what I indent to do?