Some questions
#1

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
PHP код:
new
    
somevar,
    
somearray,
    
shits
or some simply do
PHP код:
new somevarsomearrayshits
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

PHP код:
if (something == 1)
otherthing 0
Using continue for it like
PHP код:
if (something == 0) continue;
otherthing 0
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
PHP код:
if (something == 0)
    
// Do stuff
else
    
SendClientMessage(...); 
or
PHP код:
if (something == 1)
    return 
SendClientMessage(...);
// Do stuff 
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.
Reply


Messages In This Thread
Some questions - by Sjn - 03.02.2016, 17:51
Re: Some questions - by TwinkiDaBoss - 03.02.2016, 17:58
Re: Some questions - by Mencent - 03.02.2016, 18:03
Re: Some questions - by SickAttack - 03.02.2016, 18:08
Re: Some questions - by Sjn - 03.02.2016, 18:15
Re: Some questions - by TwinkiDaBoss - 03.02.2016, 18:21
Re: Some questions - by Alcatrik - 03.02.2016, 18:23
Re: Some questions - by PrO.GameR - 03.02.2016, 21:33
Re: Some questions - by Sjn - 04.02.2016, 18:20

Forum Jump:


Users browsing this thread: 3 Guest(s)