need stock help.
#1

Код:
stock GetUnusedHouse()
{
	new hf[64];
	for(new nh; nh < sizeof(House); nh++)
	{
     format(hf,sizeof(hf),"Casa%d.txt",nh);
	    if(dini_Exists(hf)) continue;
	    return nh;
	}
	return 1;
}
Okay basically, I want insteaf of taking (House) from script to be taken from folder scriptfiles / Houses/

Код:
	for(new i; i < sizeof(House); i++)
	{
    	UpdateHouse(i);
	}
Reply
#2

"Houses/Casa%d.txt"

tried that?
Reply
#3

I mean this
for(new nh; nh < sizeof(House); nh++)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)