Raised This Month: $ Target: $400
 0% 

Constants & Includes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 02-10-2017 , 12:53   Constants & Includes
Reply With Quote #1

I am writing an include with stocks/defines/constants in order to not have to write them in every plugin, but i ran into some trouble, so could anyone please tell me

What is the proper way to integrate these constants from a plugin into an include ?

I know for the one dimensional constant i can use #define to not get warnings, but for the other two ?
PHP Code:

const constant1[][] = { "blabla""blabla""blabla" }
const 
constant2[] = { 12345}

const 
constant3 = (1<<CSW_KNIFE) | (1<<CSW_C4) | (1<<CSW_USP
__________________

Last edited by Depresie; 02-10-2017 at 12:58.
Depresie 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 20:55.


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