Reaper Grimm
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 05:09. Post New Thread    Post A Reply
Kaiser
Doom64 Guru


Posts: 2897
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 Aug 5 2002 22:45 #
Kaiser is offline Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Quasar
Moderator


Posts: 6457
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 Aug 8 2002 19:40 #
Quasar is online now Twitter account Youtube Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 05:09. 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.