Warconn Posted January 14, 2011 Author Share Posted January 14, 2011 Alright, so i am trying to add another option to the ItemEditor form, a special title to the weapon…Now i have added:in both client and serverunder type and itemrec```strTitle as string```in the item editor i have added a text box to add the title to.``` Item(EditorIndex).strTitle = txtTitle.text```My debug.print says it sets it fine. but when i click the save button, i get a huge visual basics is shutting down error and my server just closes… i have no idea what is going wrong. This has happened to me before, but i was never able to figure it out. I was going to just use data3 but it is a long and i need a string...any help?Thanks-Warconn Link to comment Share on other sites More sharing options...
DshWinchester Posted January 14, 2011 Share Posted January 14, 2011 clica twice in txtTitle and put thistxtTitle.text = Item(EditorIndex).strTitle'-' Link to comment Share on other sites More sharing options...
Robin Posted January 14, 2011 Share Posted January 14, 2011 String needs to be static and you need to delete all your items.@DishWasher; Don't help if you don't know what you're talking about. Link to comment Share on other sites More sharing options...
Tdogthedog Posted January 14, 2011 Share Posted January 14, 2011 Delete all your item files and remake them.. should work fine. Link to comment Share on other sites More sharing options...
Warconn Posted January 14, 2011 Author Share Posted January 14, 2011 @Robin:> String needs to be static and you need to delete all your items.> > @DishWasher; Don't help if you don't know what you're talking about.I changed it to```static strTitle as string```and I recieved an error saying invalid statement in the type block, can you expand on your help. I guess I dont know how to make it static…@TDog:> Delete all your item files and remake them.. should work fine.I have tried that before and it did not work, I will try again once I get this part figured outThanks for the quick response Link to comment Share on other sites More sharing options...
Displaced Posted January 14, 2011 Share Posted January 14, 2011 What Robin means is "String * FIXEDVALUE".But this is not completely true… It's just a metter of how you save & load it."strTitle as string * 100" would be fine Link to comment Share on other sites More sharing options...
Warconn Posted January 14, 2011 Author Share Posted January 14, 2011 ohhhh i see now, like the name and the description… i was wondering why they were working, but mine wasn't. I almost thought the string couldn't be in a type...Thanks Again-Warconn Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now