How to make include file?
#5

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Right at top
pawn Код:
#if defined _iggy_included
    #endinput
#endif
#define _iggy_included
//your funtions here.
Makes an include called "iggy" in script use #include <iggy>. delete all callbacks, oh and save it with the extenson .inc (don't compile just save)

Edit: Just thought id add this too, if you want your includes functions to show on the function list on the right hand side of PAWNO, do the following underneath your include text (above).
pawn Код:
/*
native playername(playerid);
native IsInArea(playerid, Float:min_x, Float:min_y, Float:max_x, Float:max_y);
native GetWeaponIDFromName(WeaponName[]);
native IsValidEmail(const email[]);
*/
Obviously swap them for your own fuctions. hope this helped.
@iggy, ****** explained me about that method and said it's useless, you don't need to put inside your include.
I'm talking about this;
pawn Код:
#if defined _iggy_included
    #endinput
#endif
#define _iggy_included
//your funtions here.
He said you don't need them and people use them because other people use them, you know... they do what everyone else does.
Reply


Messages In This Thread
How to make include file? - by shadow_ghost - 02.08.2010, 15:04
Re: How to make include file? - by iggy1 - 02.08.2010, 15:14
Re: How to make include file? - by InsaniManES - 26.03.2011, 10:40
Re: How to make include file? - by [LvZ]Free - 12.08.2011, 10:04
Re: How to make include file? - by Toreno - 12.08.2011, 10:10
Re: How to make include file? - by Max_Coldheart - 12.08.2011, 10:33
AW: How to make include file? - by samtey - 12.08.2011, 11:22
Re: How to make include file? - by Jack Shred - 12.08.2011, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)