03.02.2016, 21:33
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.)
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.)