Difference?
hello!, could someone be able to tell me the differences between these 2 options?, many variables or 1
Option 1: PHP Code:
PHP Code:
|
Re: Difference?
Ask a proper question.
|
Re: Difference?
Quote:
the question is very simple https://forums.alliedmods.net/showthread.php?t=118721 "If you have something to say, triple-check if it's needed. Don't start an off topic conversation in the middle of a help request thread." |
Re: Difference?
They are effectively the same. Using a single variable would make it easier to loop through the three different origins though.
|
Re: Difference?
It depends on how you want to use them. If you want to have three floats to pick origin points, you don't need to use the second option just to save lines. Stick with the first one, more organized and easy to understand.
I guess you've chosen a bad example to explain your question. There are no difference in the final code, just how you use them, as I said before... PHP Code:
PHP Code:
|
Re: Difference?
Your question would be "Is it more efficient to use multiple arrays or sum up those multiple arrays into
one with more dimensions.?" The answer is : Both are the same. I am not trying to start an argument for that, the rules simply state that you have to properly explain your question, and lets not to talk about the title of the topic. |
Re: Difference?
Quote:
They are completely different questions, I am asking what the differences are(general), not which one is more efficient than the other,(specific) for the next time do not start a post off topic, thanks. thanks to EFFx and fysiks, who knew how to answer in a simple and clear way, what the question is. one thing EFFx, is that the example I gave is fine, I already knew how it is used in your examples, but I wanted to see what other differences there were in terms of creating more variables or creating 1 that would store more cells, in any case thanks "the rules simply state that you have to properly explain your question, and lets not to talk about the title of the topic." => "could someone be able to tell me the differences between these 2 options?" I think that this question is quite clear, and the title of the post covers everything in general, which is what I ask, the differences, please do not try to win a post with these stupidities (no offense intended) |
Re: Difference?
It seems like you put more effort in this post than the 1st one, I am glad you did some effort.
|
Re: Difference?
Quote:
"for the next time do not start a post off topic, thanks." |
Re: Difference?
To be fair, the title is not very descriptive.
|
| All times are GMT -4. The time now is 15:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.