Code crashes server sometimes.
#1
Hey guys,

I have problem, this code sometimes crashes server, why?

Code:
wrathZombies(time) { self.canUseSpecial = false; iprintlnbold("^4Wrath of Zod called by:^7 " + self.name ); self thread wrathEnd(time); visionSetnaked("zom_woz"); self endon("end_wrath"); for(;;) { choosenPlayer = level.alivePlayers["axis"][randomint(level.alivePlayers["axis"].size)]; spawnPoint = choosenPlayer.origin; wait .1; if(choosenPlayer.team == "axis" && choosenPlayer zom\mp\_zom_class::isReallyAlive() && choosenPlayer != self) { playFx( level._effect["zom_elec"], choosenPlayer.origin + (0,0,200)); playFx( level._effect["zom_plux"], choosenPlayer.origin + (0,0,200)); if(choosenPlayer.health >= 3) // anti - bug { self radiusDamage(spawnPoint, 50, 50, 50, self); wait .1; } choosenPlayer iprintLnBold("^4You are wrathed by ^7" + self.name); wait .1; iprintLn(choosenPlayer.name + " ^4is wrathed by ^7" + self.name ); wait 2.5; } wait 1; } wait 1; }
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click

#2
would help if you post the error you're getting
[Image: lQDUjba.jpg]

#3
Critical error
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click

#4
replace all your .1 waits with 0.5

i remember reading anything under .5 can crash the server with that error

so try it Smile
Code:
wait 0.5;

#5
@rotceh_dnih everything under .05 crashes your server. .1 is fine.
[Image: MaEIQ.png]

#6
(11-21-2011, 07:11)Pozzuh Wrote: @rotceh_dnih everything under .05 crashes your server. .1 is fine.

lol cool thanks i thought i read it , was just wrong about the size lol

ok then , maybe post your threads for
Code:
wrathEnd(time);
thinking it could be there or
here
Code:
zom\mp\_zom_class::isReallyAlive()
as everything else looks to be ok please post the code from those threads Smile
other wise im not sure



Possibly Related Threads…
Thread Author Replies Views Last Post
  Our Level Fastfile is Different from the Server. CheeseToast 6 15,568 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 9,596 11-02-2013, 14:16
Last Post: Casper
  MW3 Server Version superg1973 7 17,531 10-28-2013, 01:15
Last Post: kotyra972
  Help how to turn off map in dedicated server pero123 8 9,629 10-15-2013, 19:00
Last Post: Nekochan
  Issue with server addon and NAT dimitrifrom31 3 8,194 10-08-2013, 18:11
Last Post: iRoNinja
  Help Code color crosshairs koren30 3 5,318 10-02-2013, 19:26
Last Post: koren30
  GETTING SERVER ONLINE raym 6 9,207 09-28-2013, 22:42
Last Post: Nekochan
  advanced Server Config Poorya56 9 9,984 09-11-2013, 03:45
Last Post: trasto
  Help need help?how to make plugins code hXnarutoXone 12 11,882 09-01-2013, 18:30
Last Post: Bandarigoda123
  console or server browser MW2 kerm007 1 5,034 08-30-2013, 21:52
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.