Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] Adding a new itemrec?


Warconn
 Share

Recommended Posts

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 server

under 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

@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 out

Thanks for the quick response
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...