Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Borbarad
Newbie


Joined: 10 Feb 2005
Posts: 9

PostPosted: Thu Apr 14, 2005 11:02 pm   

Two databases, querys on both --> crashing db
 
I have one Alias:
#DBLOAD mobs
#DBRESET
data = %query( &Room=%roomkey, All)
#SHOW %crlf%roomname (%roomkey) --- Inhalt:%numitems( @data)
#SHOW ----------------------------
#IF (%numitems( %trim( @data)) <= 0) {
#show %ansi( high, white) Mob: Not found in database
#SHOW ----------------------------
} {
#FORALL @data {
#SHOWDB %dbget( %i)
#SHOW ----------------------------
}
}

The 2nd one:
#DBLOAD items
#DBRESET
data = %query( &Room=%roomkey, All)
#SHOW ---- Items....
#IF (%numitems( %trim( @data)) <= 0) {
#SHOW %crlf----------------------------
#show %ansi( high, white) Mob: Not found in database
#SHOW ----------------------------
} {
#FORALL %trim( @data) {
#SHOWDB %dbget( %i)
#SHOW -------------------
}
}

If i execute them back to back then it crushes sometimes and it throws a parse error.
Where do i have to pay intention that it does not crash? Any command missing? What solutions do you have for more than one database?
Any problems with it?
With Best Regards,
Marcel Honstraß
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net