Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
Reply

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

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

#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;
Reply

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

#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
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Windows 8.1 Fix for MW3 Server Addon master131 16 18,190 09-29-2014, 23:08
Last Post: SuperNovaAO
Brick [Release] MW3 Server Administration Addon iRoNinja 5 9,011 11-10-2013, 15:46
Last Post: Casper
Exclamation Help cmdlist, dvarlist server crash Nerus 17 11,912 11-09-2013, 23:54
Last Post: Nerus
  Our Level Fastfile is Different from the Server. CheeseToast 6 11,322 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 5,901 11-02-2013, 14:16
Last Post: Casper
  MW3 Server Version superg1973 7 12,747 10-28-2013, 01:15
Last Post: kotyra972
  Help how to turn off map in dedicated server pero123 8 7,134 10-15-2013, 19:00
Last Post: Nekochan
  Issue with server addon and NAT dimitrifrom31 3 5,082 10-08-2013, 18:11
Last Post: iRoNinja
  Help Code color crosshairs koren30 3 4,015 10-02-2013, 19:26
Last Post: koren30
  GETTING SERVER ONLINE raym 6 5,714 09-28-2013, 22:42
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
4 Guest(s)

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