29.09.2012, 13:47
(
Последний раз редактировалось park4bmx; 29.09.2012 в 14:19.
)
once again im having trouble with INI_ParseFile
Ok so the TelePlayerStat NEVER gets loaded
but the TelePlayerStat2 gets loaded sometimes but 1 in a 1000 tries
Why is that happening.
and yes i did a lot of debugging that's how i know this.
EDIT
output looks like this if Lucky to load anything. (this is my "printf")
How i solved it ?
i remembered that i had this problem before and ****** said that loading data without sections doesn't work well,
So i just put the data into sections, and all works fine
pawn Код:
forward Load(name[], value[]);
public Load(name[], value[])
{
if(!strcmp(name, "TelePlayerStat", true)) TelePlayer = strval(value);
if(!strcmp(name, "TelePlayerStat2", true)) TelePlayer2 = strval(value);
return 1;
}
//
INI_ParseFile("Player.txt", "Load",true, false );
but the TelePlayerStat2 gets loaded sometimes but 1 in a 1000 tries
Why is that happening.
and yes i did a lot of debugging that's how i know this.
EDIT
output looks like this if Lucky to load anything. (this is my "printf")
Код:
Loading: яTelePlayerStat Loading: TelePlayerStat2
i remembered that i had this problem before and ****** said that loading data without sections doesn't work well,
So i just put the data into sections, and all works fine