17.04.2011, 12:39
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
and in Gamemode
So my question is will this slow down proccesing time?
And no I dont want start to use PVars
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];
}
pawn Код:
CallRemoteFunction("SetVar","ii",playerid,value);
and
MyValue = CallRemoteFunction("GetVar","i",playerid);
And no I dont want start to use PVars