11.12.2014, 16:44
Hello. So, I made this.
But, when I enter in game, use command, works fine, but when I enter on folder.... there isn't nothing.
Look here path.
And define:
where '%d' it's house id. When I made command, I put:
And at the top of script:
Where it's the problem, because I can't see nothing in .ini file of that house?
+Rep for helper
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);
Look here path.
pawn Код:
stock HousePath()
{
new string[128];
format(string,sizeof(string),PATH, Houses);
return string;
}
pawn Код:
#define PATH "/Houses/%d.ini"
pawn Код:
Houses++;
pawn Код:
new Houses;
+Rep for helper