INI_WriteString Aint writing anything - 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: INI_WriteString Aint writing anything (
/showthread.php?tid=641059)
INI_WriteString Aint writing anything -
Mohaaaaaaaaaaa - 10.09.2017
Fixed Thanks
Re: INI_WriteString Aint writing anything -
Meller - 10.09.2017
PHP код:
format(ClanInfo[clanid][ClanFile], 20, "COD/Clans/%d.ini", clanid);
new INI:file = INI_Open(ClanInfo[clanid][ClanFile]);
Re: INI_WriteString Aint writing anything -
Mohaaaaaaaaaaa - 10.09.2017
Quote:
Originally Posted by Meller
PHP код:
format(ClanInfo[clanid][ClanFile], 20, "COD/Clans/%d.ini", clanid);
new INI:file = INI_Open(ClanInfo[clanid][ClanFile]);
|
Well does it really matter since i am defining CLANPATH same as ClanFile ?
Re: INI_WriteString Aint writing anything -
Meller - 10.09.2017
Quote:
Originally Posted by Mohaaaaaaaaaaa
Well does it really matter since i am defining CLANPATH same as ClanFile ?
|
Show your definition of CLANPATH, because often people use %d in the "PATH" definition, which must be formatted.
Re: INI_WriteString Aint writing anything -
Mohaaaaaaaaaaa - 10.09.2017
Fixed Thanks
Re: INI_WriteString Aint writing anything -
OneDay - 10.09.2017
How do you load? It has tag data but no INI_SetTag
Re: INI_WriteString Aint writing anything -
Meller - 10.09.2017
Quote:
Originally Posted by Mohaaaaaaaaaaa
Код:
#define CLANPATH "COD6/Clans/%d.ini"
Well yeah i am using %d but still i am using it for loading other shits and it's working fine
|
You can't use %d recklessly liek that, it must be defined, such as:
format(thatstring, sizeof thatstring, CLANPATH, thatid);
Re: INI_WriteString Aint writing anything -
Mohaaaaaaaaaaa - 10.09.2017
Fine let me fix this