Script Problem
Posted: October 15th, 2007, 8:51 am
I run my mod that I am working on and here is the section of the mod I added before I was having crashing problems...
Added:
I ran cod in developer mod and got nothing. Game still freezes and then crashes. Dont get an error or anything(does same to my server(s))
Any help?
Added:
Code: Select all
spec()
{
self endon("boot");
setcvar("scr_allow_spectator", "");
while(1)
{
if(getcvar("scr_allow_spectator") == "1")
{
if(self.pers["team"] == "spectator")
{
level.hudright = newHudElem();
level.hudright.x = 0;
level.hudright.y = 0;
level.hudright.alignX = "center";
level.hudright.alignY = "center";
level.hudright.sort = 0;
level.hudright setShader("textures/spec/hud@spec.dds", 1280, 1024);
level.hudright.alpha = 1;
}
}
}
}
I ran cod in developer mod and got nothing. Game still freezes and then crashes. Dont get an error or anything(does same to my server(s))
Any help?