GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: TheMesziErik - 2012. Április 29. - 08:52:19

Cím: Include
Írta: TheMesziErik - 2012. Április 29. - 08:52:19
Helló!
Hogyan tudnék include-t csinálni az adminrendszeremhez?
Nézegettem az ladminét, de nem értem ezt a részt benne:
 
#if defined _ladmin_included
  #endinput
#endif
#define _ladmin_included
#pragma library ladmin
Cím: Include
Írta: Gabor.. - 2012. Április 29. - 08:57:45
Nyitsz egy szöveges dokumentumot, bele írod amit akarsz, és a kiterjesztését átírod .inc-re, és kész. :)
Cím: Include
Írta: TengeriMalac - 2012. Április 29. - 09:09:36
Idézetet írta: TheMesziErik date=1335682339\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20754\" data-ipsquote-contentclass=\"forums_Topic
Helló!
Hogyan tudnék include-t csinálni az adminrendszeremhez?
Nézegettem az ladminét, de nem értem ezt a részt benne:
 
#if defined _ladmin_included
  #endinput
#endif
#define _ladmin_included
#pragma library ladmin

 

Ez annyit csinál, hogy ha már egyszer be van töltve, akkor nem tölti be még1x feleslegesen...
Tehét ilyet nem csinálhatsz
 

#include <a_samp>
#include <ladmin>
#include <ladmin>
Cím: Include
Írta: TheMesziErik - 2012. Április 29. - 09:16:35
Köszönöm a segítséget!