C++ Structs doesnt work

Hi, I am trying to create struct in c++ but it shows me like 20 errors for some unknown reason.
All errors are syntax or something stupid. Its really weird :confused:

image

Those are most likely intellisense false reports, try compiling your code you should be good.

Once you compile successfuly, close visual studio, right click on your uproject and select generate visual studio project files, that usually helps with those false errors.

I can not compile it though, corect me if im wrong, but if there is an error, it fails compiling no?

Yes, can you share your error list once you compile. Change this to Build only

I got this:

Try changing the include to this instead
#include "CoreMinimal.h"

image

Those new ones appear to be in your code.

Edit: Which you haven’t shared, so no one will be able to help you with, as things stand.

Your RespawnParameters function has a situation where it doesn’t return anything. You can try to fix it or share your code if the problem persists.

86 the public and generated body should be generated ustruct body and core minimal.h get rid of the base, id recommend placing all structs in your projects base .h file and adding then as variables to whatever custom class you need if this is in a class file

As I understand it, you are about a decade out of date here :wink:

1 Like

The code of struct is in my first response :)))))

Edit: sudenly it started working, i have re-deleted it multiple times but now it completed the build, very weird.

I use 5.2