[FilterScript] Sistema de Crouch @ThunderGamesBR
#9

Simples de + admita...

pawn Code:
#if !defined _samp_included
        #tryinclude <a_samp>
        #if !defined _samp_included
                #error unable to load a_samp.inc
        #endif
#endif

Pra que isso fio.

Explicaзгo:
pawn Code:
#tryinclude
Isto й semelhante a #include, mas se o arquivo nгo existir a compilaзгo nгo falha. Isso й ъtil apenas para incluir recursos em seu script, se uma pessoa tem o plugin correto instalado (ou, pelo menos, o plug-in incluem):

myinc.inc:
pawn Code:
#if defined _MY_INC_INC
    #endinput
#endif
#define _MY_INC_INC
 
stock MyIncFunc()
{
    printf("Hello");
}
Gamemode:
pawn Code:
#tryinclude <myinc>
 
main()
{
    #if defined _MY_INC_INC
        MyIncFunc();
    #endif
}
Reply


Messages In This Thread
Sistema de Crouch @ThunderGamesBR - by @LucasVinicius - 23.06.2013, 02:02
Re: Sistema de Crouch @ThunderGamesBR - by iMega - 23.06.2013, 02:21
Re: Sistema de Crouch @ThunderGamesBR - by WLSF - 23.06.2013, 02:55
Re: Sistema de Crouch @ThunderGamesBR - by s4kuL - 23.06.2013, 03:19
Re: Sistema de Crouch @ThunderGamesBR - by MonFiTy - 23.06.2013, 03:23
Re: Sistema de Crouch @ThunderGamesBR - by Prefacio - 23.06.2013, 05:09
Re: Sistema de Crouch @ThunderGamesBR - by smiiir - 23.06.2013, 15:36
Re: Sistema de Crouch @ThunderGamesBR - by ProKillerpa - 23.06.2013, 16:48
Re: Sistema de Crouch @ThunderGamesBR - by Schocc - 23.06.2013, 17:07
Re: Sistema de Crouch @ThunderGamesBR - by Prefacio - 23.06.2013, 17:09
Re: Sistema de Crouch @ThunderGamesBR - by @LucasVinicius - 23.06.2013, 21:27

Forum Jump:


Users browsing this thread: 4 Guest(s)