Posts: 578
Threads: 40
Joined: Dec 2016
PHP код:
format(ClanInfo[clanid][ClanFile], 20, "COD/Clans/%d.ini", clanid);
new INI:file = INI_Open(ClanInfo[clanid][ClanFile]);
Posts: 578
Threads: 40
Joined: Dec 2016
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.
Posts: 294
Threads: 12
Joined: Sep 2015
Reputation:
0
How do you load? It has tag data but no INI_SetTag
Posts: 578
Threads: 40
Joined: Dec 2016
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);