Author Topic: Plugin code problem. Relogging causes plugin to start more than once?
-Eps 
Title: I Love Boobies. And Butts, too!
Posts: 17,344
Registered: May 30, '07
Extended Info (if available)
Real Post Cnt: 32,011
User ID: 1,226,605
Subject: Plugin code problem. Relogging causes plugin to start more than once?
When I relog, if i had it parse the text "hello" to chat, it will repeat it again the amount of times i've relogged.
so if i've relogged 6 times it will say Hello 6 times even though there is only code to say it once...

not sure why this is happening.

StartUp() is only running once... everything else runs the number of times of relogging.

 

-----signature-----
#dnn #og-ac http://tinyurl.com/ACDTChat
Fastest 1-275 in AC history.
Plugin Users: 100+
Buy Plugins Relogger, ValSalv, and AutoVendor(route trigger): http://bit.ly/ACaCAl
[Trade] +Envoy Sparker says, "Rep check: Eps Levelin, PST."
Link to this post
-Eps 
Title: I Love Boobies. And Butts, too!
Posts: 17,344
Registered: May 30, '07
Extended Info (if available)
Real Post Cnt: 32,011
User ID: 1,226,605
Subject: Plugin code problem. Relogging causes plugin to start more than once?
same problem as this guy has:
http://forums.decaldev.com/phpBB2/viewtopic.php?f=9&t=4528&p=23089&hilit=relog#p23089

 

-----signature-----
#dnn #og-ac http://tinyurl.com/ACDTChat
Fastest 1-275 in AC history.
Plugin Users: 100+
Buy Plugins Relogger, ValSalv, and AutoVendor(route trigger): http://bit.ly/ACaCAl
[Trade] +Envoy Sparker says, "Rep check: Eps Levelin, PST."
Link to this post
Mag-nus 
Posts: ????
Registered: ????
Extended Info (if available)
Real Post Cnt: 0
User ID: 0
Subject: Plugin code problem. Relogging causes plugin to start more than once?
You're event subscription code is being re-run.

Programming 101 dude.

 

-----signature-----
Link to this post
-Eps 
Title: I Love Boobies. And Butts, too!
Posts: 17,344
Registered: May 30, '07
Extended Info (if available)
Real Post Cnt: 32,011
User ID: 1,226,605
Subject: Plugin code problem. Relogging causes plugin to start more than once?
nvm i figured it out. yeah i knew that was happening but didn't notice i had another startup in a different place. grr

 

-----signature-----
#dnn #og-ac http://tinyurl.com/ACDTChat
Fastest 1-275 in AC history.
Plugin Users: 100+
Buy Plugins Relogger, ValSalv, and AutoVendor(route trigger): http://bit.ly/ACaCAl
[Trade] +Envoy Sparker says, "Rep check: Eps Levelin, PST."
Link to this post

Valid XHTML 1.0 Transitional Powered by PHP