#define variable variable2
PHP Code:
[ 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? |
Re: #define variable variable2
How it does matter a macro would not be only is a specific function ? That's something replace at compilation time, I don't see problems.
|
Re: #define variable variable2
Quote:
( First sentence to be precise ) |
Re: #define variable variable2
If you need to make a macro function specific, you can do it like:
Code:
function() |
Re: #define variable variable2
Stuff like this throws up a red flag for me. There has got to be a better way to do what you want.
|
Re: #define variable variable2
Quote:
Edit: i misunderstood you. I saw that the second sentence was # i have a better way # or something. Its me, i am sorry. |
Re: #define variable variable2
Write down the full variable name.
|
Re: #define variable variable2
Avoid stupid stuff.
|
Re: Re: #define variable variable2
Quote:
|
Re: #define variable variable2
Quote:
And also my logic is weird for ohter peoples. edit: also sometimes, i just dont understand what they say to me. Its not because i have very bad english, I did not focused enough. Quote:
if the global variable name is long and your function code is long then you lose time by writing every time that long variable name. for example ( new g_flashlightcolor[33][3] ) there is possible to change global variable to shorter name but the thing is, i dont understand later what this is or what can happen is that 2 variables have the same name. I try to avoid that. If you know how to zp work then you see that the creator of it did 9 or more plugins for one mod. What i do is that my mod will be just 1 sma but with parts ( many .inc-s ) Also each .inc code have different variable tag. Quote:
|
| All times are GMT -4. The time now is 21:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.