Help. :|
#1

Hello. So, I made this.

pawn Код:
new INI:File = INI_Open(HousePath());
INI_SetTag(File,"Houses");
INI_WriteInt(File,"House ID", hID);
INI_WriteInt(File,"House Interior", hInterior);
INI_WriteFloat(File,"hX", X);
INI_WriteFloat(File,"hY", Y);
INI_WriteFloat(File,"hZ", Z);
But, when I enter in game, use command, works fine, but when I enter on folder.... there isn't nothing.

Look here path.

pawn Код:
stock HousePath()
{
    new string[128];
    format(string,sizeof(string),PATH, Houses);
    return string;
}
And define:

pawn Код:
#define PATH "/Houses/%d.ini"
where '%d' it's house id. When I made command, I put:

pawn Код:
Houses++;
And at the top of script:

pawn Код:
new Houses;
Where it's the problem, because I can't see nothing in .ini file of that house?

+Rep for helper
Reply


Messages In This Thread
Help. :| - by HY - 11.12.2014, 16:44
Re: Help. :| - by Clad - 11.12.2014, 16:50
Re: Help. :| - by HY - 11.12.2014, 16:54
Re: Help. :| - by M4D - 11.12.2014, 16:55
Re: Help. :| - by HY - 11.12.2014, 17:00
Re: Help. :| - by Clad - 11.12.2014, 17:02
Re: Help. :| - by M4D - 11.12.2014, 17:07
Re: Help. :| - by HY - 11.12.2014, 17:23
Re: Help. :| - by Ryz - 11.12.2014, 17:36
Re: Help. :| - by HY - 11.12.2014, 17:38

Forum Jump:


Users browsing this thread: 1 Guest(s)