View Single Post
  #14  
Old 02-08-2004, 08:16 AM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default Re: Code fix for ZoneID issue

Quote:
Originally Posted by screamingogre
Code:
long LOCounter;
			do {
			    charid = database.GetCharacterInfo(char_name, &tmpaccid, &zoneID);
				LOCounter++;
			}while ((zoneID == 0) && (LOCounter > 10000));
This will call the database until the ZoneID is not equal to 0 or the counter hits 10001. You may need to tweek the counter number for your server depending on how fast or slow it is.
**SO
What values do you mean? Decrease it if you have more power, increase if your running on a less powerful system?
__________________

kRPG Profile
Reply With Quote