[Include] Simple Script Include (SSI)
#3

Here is a little tip for future coding. Defines are quicker than stocks. When you have something like the Kill stock function, you can easily make it into a define which would use less resources.

pawn Код:
stock Kill(playerid)
{
    SetPlayerHealth(playerid, 0);
    return 1;
}
Can go into
pawn Код:
#define Kill(%1) SetPlayerHealth(%1, 0)
Reply


Messages In This Thread
Simple Script Include (SSI) - by GAMER_PS2 - 06.11.2011, 07:27
Re: Simple Script Include (SSI) - by Lorenc_ - 06.11.2011, 07:48
Re: Simple Script Include (SSI) - by [HiC]TheKiller - 06.11.2011, 08:13
Re: Simple Script Include (SSI) - by wups - 06.11.2011, 08:14
Re: Simple Script Include (SSI) - by GAMER_PS2 - 06.11.2011, 08:42
Re: Simple Script Include (SSI) - by Speed - 06.11.2011, 08:51
Re: Simple Script Include (SSI) - by System64 - 06.11.2011, 08:52
Re: Simple Script Include (SSI) - by GAMER_PS2 - 06.11.2011, 09:04
Re: Simple Script Include (SSI) - by Danice Ton - 06.11.2011, 09:27
Re: Simple Script Include (SSI) - by GAMER_PS2 - 06.11.2011, 09:37

Forum Jump:


Users browsing this thread: 1 Guest(s)