13.06.2012, 23:22
Title pretty much says it all.
Let's say I have 100 multi-parameter commands in a huge roleplay mode, and in each command I would format a string to display a message. Now would it be efficient to just define one string to use in all the commands? I already know this would save tons of memory, but I read somewhere that Pawn is single-threaded.
For example
Player 1 types a command.
Player 2 types a command a few milliseconds after.
What are the chances of strings mixing up? Will that even happen?
Let's say I have 100 multi-parameter commands in a huge roleplay mode, and in each command I would format a string to display a message. Now would it be efficient to just define one string to use in all the commands? I already know this would save tons of memory, but I read somewhere that Pawn is single-threaded.
For example
Player 1 types a command.
Player 2 types a command a few milliseconds after.
What are the chances of strings mixing up? Will that even happen?