Advantages/Disadvantages of using one string.
#10

Quote:
Originally Posted by milanosie
Посмотреть сообщение
I do not completly agree with this statement, as in any case of a small/short freeze and/or lag spike from the server, the strings would easily mix up.

I am using a new string for every command, just to make sure it doesn't mess up.
from what iv read if their is only 1 thread then how would a freeze/lagg cause the string to mess up?
When the server becomes responsive then it SHOULD continue where it left off,
and no other functions will run until the last function returns "focus" to the chain.


@strcat problem

I do think the problem will be clearing the string properly (for some),
but i dont think thats a problem for you VD or anyone reading this topic.

i think somewhere was said the best method for it was string[0]='\0';
and if using in a remote function ect.. string[0]='\1',string[1]='\0';

iv been debating this "one global string" method myself, I want to make a single global string to use
for Query's, one for dialogs and one for TextDraws.
I will most likely start with the Sql Query's as the names are the
same in every function i have written for db access.


if you do run into trouble please let us know.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)