Blueprint Library Plugin Not Working

You aren’t assigning anything to TestVariable and then you’re using it in the FindLastChar method. That’d not gonna work.

Hello everyone! I am making a plugin using the Blueprint Library plugin template. I added this to the code:
This is the .h file.

And this is the .cpp file:

72386-this+is+cpp.png

When I compile the plugin, UE4 says "Error C4700: uninitialized local variable ‘Test Variable’ used. Did I do a mistake or is it an engine problem? Thank you in advance! :slight_smile:

I changed it to
char TestVariable = “a”;

It still gives errors.
“Cannot convert from ‘const char[2]’ to char” and “There is no context in which this conversion is possible”.

That’s because “a” is a string or char array. ‘a’ is a char.

Wow, I can’t believe I forgot this. Thank you!