Questin about map loading - 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: Questin about map loading (
/showthread.php?tid=317894)
Questin about map loading -
Mark_Weston - 12.02.2012
Hey there I have one small question.
What is better.
To load the maps from few FS's, or load all the maps from one FS?
Thanks for your time and help
Re: Questin about map loading -
Vince - 12.02.2012
Are you talking about static map objects or ..? Please elaborate.
Re: Questin about map loading -
Mark_Weston - 12.02.2012
Quote:
Originally Posted by Vince
Are you talking about static map objects or ..? Please elaborate.
|
Objects... Custom maps, CreateDynamicObject.
Re: Questin about map loading -
Vince - 12.02.2012
If the maps are not subject to dynamic changes, you might as well poor them in an include file and include them directly into your gamemode. I do this all the time to move code away from the main block;
pawn Код:
public OnGameModeInit()
{
#include "../src/maps/ciahq.txt"
}
Re: Questin about map loading -
Mark_Weston - 12.02.2012
Quote:
Originally Posted by Vince
If the maps are not subject to dynamic changes, you might as well poor them in an include file and include them directly into your gamemode. I do this all the time to move code away from the main block;
pawn Код:
public OnGameModeInit() { #include "../src/maps/ciahq.txt" }
|
Well I am asking whats better caz, sometimes objects take few mins to load.