Easygoing Eyebeast Dintiradan Posted September 5, 2006 Share Posted September 5, 2006 I've been getting a lot of errors from Alint in my scripts. All of them original when I assign a string to a variable. Is something else wrong, or do I have to use buffer calls instead of assigning strings to variables (I really want to make sure this is the problem before I go over all of my scripts)? -------------------- We interrupt this scheduled quote to bring you a rant. Again. WHAT? "WE HAVE DETECTED THE PRESENCE OF SPYWARE ON YOUR COMPUTER! PLEASE CLICK HERE FOR A FREE SCAN?!?!?!?!?!" Quote Link to comment Share on other sites More sharing options...
Rotghroth Rhapsody wz. As Posted September 5, 2006 Share Posted September 5, 2006 post code Quote Link to comment Share on other sites More sharing options...
Easygoing Eyebeast ben4808 Posted September 5, 2006 Share Posted September 5, 2006 char string[] = "Text"; char* string = "Text"; Or maybe there's a different string datatype used in BoA. Quote Link to comment Share on other sites More sharing options...
Easygoing Eyebeast Dintiradan Posted September 5, 2006 Author Share Posted September 5, 2006 Umm... Code: string = "string"; There's an error for every instance of this, at least in Alint. EDIT: Beat to the post... by two seconds. -------------------- IF I EVER BECOME AN EVIL OVERLORD: I will never tell the hero "Yes I was the one who did it, but you'll never be able to prove it to that incompetent old fool." Chances are, that incompetant old fool is standing behind the curtain. Quote Link to comment Share on other sites More sharing options...
Easygoing Eyebeast ben4808 Posted September 5, 2006 Share Posted September 5, 2006 Are you sure the variable string is the correct datatype (declared as a string)? Quote Link to comment Share on other sites More sharing options...
Unflappable Drayk Lazarus. Posted September 5, 2006 Share Posted September 5, 2006 As far as I can tell, you can only assign a string in that way in the variables section. So for example variables; string test = "Test."; Would be legitamate, but if you tried to write test = "test"; Somewhere in the body of the script it returns an error. If you need to do this then I think you have to use get_buffer_text(). Edit: The problem isn't with Alint, I tried to assign a string in this way and got a missing semicolon error when I tested it in BOA (No, I wasn't missing a semicolon, I think its either the wrong format or just not a valid way to assign strings). Quote Link to comment Share on other sites More sharing options...
Easygoing Eyebeast Dintiradan Posted September 6, 2006 Author Share Posted September 6, 2006 Yes, I did declare it as a string. Guess I'm going to have to change my code. The only thing is that I'm getting errors from scripts I alpha tested before, script I could have sworn worked fine before. Oh well. -------------------- IF I EVER BECOME AN EVIL OVERLORD: If my mad scientist/wizard tells me he has almost perfected my Superweapon but it still needs more testing, I will wait for him to complete the tests. No one ever conquered the world using a beta version. Quote Link to comment Share on other sites More sharing options...
Magnificent Ornk Ephesos Posted September 6, 2006 Share Posted September 6, 2006 You didn't call your variable "string", did you? Because I'm certain that would cause errors... Quote Link to comment Share on other sites More sharing options...
Easygoing Eyebeast Dintiradan Posted September 6, 2006 Author Share Posted September 6, 2006 Don't worry, I didn't. Anyway, went over my code, changed everything so it used the buffer, and now it works. Why assigning a string to a declared variable gets a semicolon error is beyond me. -------------------- IF I EVER BECOME AN EVIL OVERLORD: I will not appoint a relative to my staff of advisors. Not only is nepotism the cause of most breakdowns in policy, but it also causes trouble with the EEOC. Quote Link to comment Share on other sites More sharing options...
Easygoing Eyebeast *i Posted September 7, 2006 Share Posted September 7, 2006 Sounds like a possible bug, perhaps it should be added to the list. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.