need stock help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need stock help. (
/showthread.php?tid=548078)
need stock help. -
Somalez - 27.11.2014
Код:
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);
}
Re: need stock help. -
PinkFloydLover - 27.11.2014
"Houses/Casa%d.txt"
tried that?
Re: need stock help. -
Somalez - 27.11.2014
I mean this
for(new nh; nh < sizeof(House); nh++)