Thread: strlen + #e
View Single Post
  #15  
Old 01-26-2004, 09:39 PM
DIABLO2099 DIABLO2099 is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 290
DIABLO2099 is on a distinguished road
Quote:
Originally posted by -Ramirez-

Wtf, a script did something similar to me before. After experimenting with it a minute ago... I think I know what does it. The script was being ran through the second you put it in a level and clicked "Close" on the script dialog. It set the first two strings, ignored the loop, and set the string inside of the for loop. Since i hadn't been set to anything yet, it was set as 0, so it set "tword2" as B initially. ...but that wouldn't explain why it stayed there even after you clicked "Play", since it should have unset tword2 before running through the loop. Weird.

Ok... nor does that explain why the B is on the END of your string...
OH, wait, did you use the debugger to view the string, or did you press F4 and look at the flag list? If you used F4, it might have re-parsed through the script and did what I said at the beginning. That would explain the B at the end rather than the beginning.

Yeah, I just tested out that theory. That's exactly what it seems to be doing. Obviously a bug, as it shouldn't be going inside of a loop when it sets initial strings. Well, it's a bit awkward that it would even set strings before entering the level anyway...
Hm, maybe if you delay the script for a tenth of a second or more it might be enough delay to make it run correctly, I'm not really sure =x.
__________________
-Former UnholyNation Server Manager.

Call me Xecutor.
Reply With Quote