Could this idea work out
#1

So, since my scipt is getting bigger and bigger, now its compiling over 1 min, so now I started to think about one idea how to reduce that time, yes Im going to optimize string lenghts etc, just that would save me only some 10 secs, so here comes my idea

what about make FS where I make like

new PlayerVar[MAX_PLAYERS];
new PlayerVar2[MAX_PLAYERS];

and so on


And in Main Gamemode just use CallRemoteFunction to write data in these variables.

in FS it could look like this
pawn Код:
new PV[MAX_PLAYERS];


SetVar(playerid,value)
{
PV[playerid] = value;
}

GetVar(playerid)
{
return PV[playerid];
}
and in Gamemode
pawn Код:
CallRemoteFunction("SetVar","ii",playerid,value);
and
MyValue = CallRemoteFunction("GetVar","i",playerid);
So my question is will this slow down proccesing time?

And no I dont want start to use PVars
Reply


Messages In This Thread
Could this idea work out - by Voldemort - 17.04.2011, 12:39
Re: Could this idea work out - by iJumbo - 17.04.2011, 12:41
Re: Could this idea work out - by Voldemort - 17.04.2011, 12:45
Re: Could this idea work out - by Vince - 17.04.2011, 12:59
AW: Could this idea work out - by Nero_3D - 17.04.2011, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)