Checking if a function exists at compile time: native function failed at run time
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Unless you do it with #define:
pawn Код:
#if !defined fcreate
    #define fcreate(%0); if (!fexist(%0)) { new File:file = fopen(%0,io_write); if(file) fclose(file); }
#endif
Well that works, thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)