VaultNetwork.net Vault Network Boards
Author Topic: Plugin code problem. Relogging causes plugin to start more than once? [Locked]
-Eps  3 stars
Title: I Love Boobies. And Butts, too!
Posts: 771
Registered: 2007-5-30 21:33:21
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."
-Eps  3 stars
Title: I Love Boobies. And Butts, too!
Posts: 771
Registered: 2007-5-30 21:33:21
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."
Mag-nus  1 star
Posts: 234
Registered:
You're event subscription code is being re-run.

Programming 101 dude.
-Eps  3 stars
Title: I Love Boobies. And Butts, too!
Posts: 771
Registered: 2007-5-30 21:33:21
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."

VaultNetwork.net is an independently operated community forum and is not affiliated with, endorsed by, or technically based on IGN, GameSpy, FilePlanet, GameStats, or the former IGN/GameSpy Vault Network.
References to VaultNetwork.net mean this site/domain. VNBoards-style presentation is a visual homage only. By using this site, you agree to the forum rules.