Y_INI Question Fast ! - 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 Question Fast ! (
/showthread.php?tid=599181)
Y_INI Question Fast ! -
Amunra - 22.01.2016
Hi,
I Just "ASK" How to Replace INI File
Example :
PHP код:
[GANGSAVE]
Gang Name : Test
If Player Change they Gang Name INI Make a Replace Like
PHP код:
[GANGSAVE]
Gang Name : TestAaa
In My Save File ,, Get Problem Like
PHP код:
[GANGSAVE]
Gang Name :Test
Gang Name : TestAaa// ini make a New String But I Want to Replace that But The INI Set to New String !
I Use function INI_WriteString ,Thats Right Or False ?
Tell me with What i change this ?
Re: Y_INI Question Fast ! -
amirm3hdi - 22.01.2016
Show the line that you save the new player gang!
Re: Y_INI Question Fast ! -
xTURBOx - 22.01.2016
i think i see your problem
you need to do something like
INI_SetTag(file,"GANGSAVE");
and then
INI_WriteString(file,"Gang Name","TestAaa"
if you dont set the tag y_ini will write a new line
Re: Y_INI Question Fast ! -
Amunra - 22.01.2016
Quote:
Originally Posted by xTURBOx
i think i see your problem
you need to do something like
INI_SetTag(file,"GANGSAVE");
and then
INI_WriteString(file,"Gang Name","TestAaa"
if you dont set the tag y_ini will write a new line
|
I Do SetTag at my stock SavePlayerData(playerid);
But On Load data I Not Do that I Do(At Loaddata):
PHP код:
INI_Int("Gang Owner", Gang[playerid][order]);
INI_Int("Gangs Member", Gang[playerid][gid]);
INI_String("Gang Name", Ganginfo[Gang[playerid][gid]][grname] ,75); //But I Not Make a SetTag
Thats right ? Or I Must Put SetTag at LoadData?
Re: Y_INI Question Fast ! -
Amunra - 22.01.2016
Anyone Know to fix that ?
Re: Y_INI Question Fast ! -
Jefff - 22.01.2016
Propably you can't have space between words try "Gang_Name"