Raised This Month: $ Target: $400
 0% 

#define variable variable2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 03-06-2013 , 19:06   #define variable variable2
Reply With Quote #1

PHP Code:
new a_test[6]

public 
plugin_init()
{
    new 
a
    
#define b[%1] a_test[%1]
    
b[4] = 12
    a 
6
    test2
(a)
}

test2(a)
{
    if(
== 5b[3] = 16

What i want to is that #define b is only inside of function plugin_init.
[ Some global variables are long and its pretty annoying to write and it also take some time. ]

My question is that how i can do it?
.Dare Devil. 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:46.


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