03.02.2016, 17:51
Hello.
I have few questions here. Some of the questions can be retardish but I just want to get good answers.
#1:
I know this question has been asked before but I am still not sure about it. Does the code lines really matter?
Call me a dumb but do these 2 ways of creating variables make any difference?
Like you know some people do
or some simply do
The first one would take few more lines while the second one just takes one.
I am pretty obsessed with designing the code layout so I was wondering if this matters.
#2: Is it ok if i use 'continue' for the following purposes? Like instead of doing this
Using continue for it like
If there's any difference between these 2 method, which would be more efficient to use?
#3: Is creating huge cell for dialog strings a good idea? For example; I need a dialog that contains player's stats and total string length for it would be around 1500. I even have some other dialogs that needs 3000 cell of string to work.
#4:
Among these 2 method, which one would be a good way to do so
or
I am sorry if these questions are really lame. Also, sorry if this isn't a correct section to ask something like this, as I didn't find any other suitable sections. Thanks.
I have few questions here. Some of the questions can be retardish but I just want to get good answers.
#1:
I know this question has been asked before but I am still not sure about it. Does the code lines really matter?
Call me a dumb but do these 2 ways of creating variables make any difference?
Like you know some people do
PHP код:
new
somevar,
somearray,
shits;
PHP код:
new somevar, somearray, shits;
I am pretty obsessed with designing the code layout so I was wondering if this matters.
#2: Is it ok if i use 'continue' for the following purposes? Like instead of doing this
PHP код:
if (something == 1)
otherthing = 0;
PHP код:
if (something == 0) continue;
otherthing = 0;
#3: Is creating huge cell for dialog strings a good idea? For example; I need a dialog that contains player's stats and total string length for it would be around 1500. I even have some other dialogs that needs 3000 cell of string to work.
#4:
Among these 2 method, which one would be a good way to do so
PHP код:
if (something == 0)
// Do stuff
else
SendClientMessage(...);
PHP код:
if (something == 1)
return SendClientMessage(...);
// Do stuff