I based mine on time passed, that way it doesn't matter how fast your machine is. This code waits 20 seconds before it gives up. Note that if it does get a good zone id, it breaks out of the loop.
Code:
__time64_t curtime1,curtime2; |
Code:
__time64_t curtime1,curtime2; Code:
Compiler: Default compiler Any help would be appreciated, Monrezz |
I seem to be having the same problem.
I've had a great time setting it up. I absorbed the boards and searched twice for all of my questions. I've edited database tables, added and removed fields. I'm having a great time! :D I am not able to zone however. It's 4pm now and i've been fiddling with everything I could get my hands into all day. I've broke it and fixed it all day long.... Last night was the server set up. I suppose the next thing to do is start playing with the code. That I will save for tomorow. Wag yikes, is this my first post? |
Re: Code fix for ZoneID issue
Quote:
}while ((zoneID == 0) && (LOCounter > 10000)); should be }while ((zoneID == 0) && (LOCounter < 10000)); Its checking if LOCounter is LESS THAN 10k and entering the loop if is, and increasing it by 1 every time it loops until its GREATER THAN 10k. And that's rogean's math lesson of the day. tks |
Quote:
|
All times are GMT -4. The time now is 08:14 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.