Code Optimization
#1

I saw this thread > https://sampforum.blast.hk/showthread.php?tid=580289 , and i want to optimize my script with trick 5. Assigning multiple variables to the same value & using memset.

Is that mean if i change this:

Код:
stock ResetVariables(playerid)
{
PlayerCuffed[playerid] = 0;
PlayerCuffedTime[playerid] = 0;
... and about 100 more variables.
RegistrationStep[playerid] = 0;
return 1;
}
To this:

Код:
stock ResetVariables(playerid)
{
PlayerCuffed[playerid] =
PlayerCuffedTime[playerid] =
... and about 100 more variables.
RegistrationStep[playerid] = 0;
return 1;
}
i will optimize my script? P.S. This reset variables when player connects!
Reply


Messages In This Thread
Code Optimization - by DusanInfinity - 03.10.2015, 12:24
Re: Code Optimization - by x3378 - 03.10.2015, 12:40
Re: Code Optimization - by DusanInfinity - 03.10.2015, 14:39
Re: Code Optimization - by Vince - 03.10.2015, 15:05
Re: Code Optimization - by DusanInfinity - 04.10.2015, 11:23
AW: Re: Code Optimization - by Nero_3D - 04.10.2015, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)