Raised This Month: $ Target: $400
 0% 

[STOCKS] Useful TF2 Functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 03-26-2008 , 21:50   Re: [STOCKS] Useful TF2 Functions
Reply With Quote #7

Sorry, but you cant include files during runtime. They simply inform the compiler a function is defined elsewhere (referring to natives), so doing that doesnt make much sense.

EDIT:

Quote:
Originally Posted by bl4nk View Post
That's not how it works. Only the following line is inside of the if statement.
Sure, but the line immediately below is ignored since its a compiler directive, and so the line below that one is taken in instead.

EDIT 2:

If you wanna check whether the file is already included or not, do

Code:
#if !defined _sdktools_included #include <sdktools> #endif

Though it doesnt hurt even if sdktools was included twice cause it uses that define too.
__________________
plop

Last edited by p3tsin; 03-26-2008 at 22:01.
p3tsin is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode