21.09.2010, 21:26
What happends if I use a global variable, and then I use that variable in two commands, and two players tipe a command at the same time, the variable would be bugged?
It is very very (very) unlikely that they type it at exactly the same time, there will always be at least 10ms difference.
Even if they should get it done, pawn is only single-threaded, meaning, the two command requests will be processed one after the other, so the variable will get the value of the last processed request. So no fear, there will be no problems |