Weird impy thing
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Annoying scripting error
 
Author
All times are GMT. The time now is 19:08. Post New Thread    Post A Reply
Kaiser
Doom64 Guru


Posts: 2859
Registered: 08-00


I am trying to make this script activate only if the game is in deathmatch mode.

here's a test script I was trying to do, but Eternity keeps crashing on me even if this script is not activated, it will start up after I erase this script entirely. How can I get the gamemode() function to work right?



example script:



script 2
{
if(gamemode() == 0)
{
message("single player on");
}
elseif(gamemode() == 1)
{
message("coop on");
}
elseif(gamemode() == 2)
{
message("deathmatch on");
}

}startscript(2);


can anyone find out why this keeps causing the port to crash?

__________________
http://doom64ex.sourceforge.net/
http://doom64ex.wordpress.com/

Old Post 08-05-02 22:45 #
Kaiser is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
Quasar
Moderator


Posts: 6093
Registered: 08-00


The if/elseif construct is known to be buggy. The present FS system is very messy and just about impossible to improve or fix, so it is in the process of being completely replaced.

By the way, DOOM Legacy is known to have this same problem.

Old Post 08-08-02 19:40 #
Quasar is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 19:08. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Annoying scripting error

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.