INI_ParseFile Not loading Propperly
#1

once again im having trouble with INI_ParseFile

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 );
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")
Код:
Loading: яTelePlayerStat
Loading: TelePlayerStat2
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
Reply


Messages In This Thread
INI_ParseFile Not loading Propperly [SOLVED] - by park4bmx - 29.09.2012, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)