Some questions
#8

1-2-4 are already answered well in the topic which pretty much turns to one simple sentence, your own preference, use whichever you like.
However for 3, I would like to give you a little more explanation, a global string for strings you use ? BAD IDEA, Using too much unnecessary cells ? bad idea( There is an example in Godfather script, defining STRING_LENGTH to 256 and using that for everything, it's simply bad)
If you need 1000, it's safe to go for a 1500 cell string, if you need 500, it's alright to have a 800 string size, but using 5000 just because you are lazy to count how many you need is a bad coding habit, and will turn into something bigger later, try to count a string size's max, and always use that( so for example if you need a "%s(%i) has left the server.", This will never go higher than MAX_PLAYER_NAME+1+3(ID)+24 (I usually round it up to closest hundred or 2^x I can tho, so I'm not really great at efficiency, but I still won't use more than 20-30 extra ones.)
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: 2 Guest(s)