Block Not Running

There’s some sort of syntax error in this block that causes the following error to happen. I can’t find it. Could someone help?
image

I’ve checked to see if all my properties are of the right type, and they are.

Fixes:

Kosm0-o already found that I was referencing myTextToEnd in the myTextToEnd initialization.

I’ve seen that error is some games. I don’t know what that it but the game seems to run fine. Does your game not work?

Is it because you’re calling myTextToEnd variable in your myTextToEnd variable reference?

3 Likes

Thank you! That’s definitely an error, but that alone didn’t fix it.

@CyanTigerReigns the error means that something is wrong with your blocks and it prevents the block from running. So if you see it, the game shouldn’t run fine.

2 Likes

And you fixed the error for both myTextToEnd References?

Does find first occurrence of text give you a number? If not, then this part is wrong.
image

It does return a number. @Kosm0-o yes I did.

2 Likes

Oh, okay.

What format is the property AllCoords and Player ID?

Is it just like this?

472946

Or with a space or something in between?

2 Likes

Player ID’s just a number, and AllCoords is a list in the form of
[X COORD],[Y COORD]-id[PLAYER ID];
But I’m not looking for logic errors. I’m just looking for syntax errors.

2 Likes

I don’t get where the ; sign comes from? Is that a error? Just asking random things lol

That’s just how I chose to separate each entry in the list.

As I said, I’m looking for syntax errors, not logic errors, so I’m not going to answer any more of these questions.

2 Likes

So the code has AllCoords set to 24,40-id1 or something. Then it sets myTextToEnd to 24,40 to my understanding. Then foundEntry tries to look for ; in the string 24,40?! But it has a , not a ; :sob:

im so confused

Getrithekd said that they used it to separate each entry in the list, so I would assume that it would actually be something like 24,40-id1;? I’m not sure.

Could you add a new pic with the new block code?

Done.

3 Likes

myTextToEnd is still referencing itself it seems like.

2 Likes

In the first initialization of myTextToEnd, did you want to find the length of allCoords?

5 Likes

Huh. I guess I didn’t change that… Thanks!

@Kosm0-o it works now!

4 Likes