Make Save System

What Chance said!

Welcome to the forums!!!

:slight_smile:


**Non Void Function Must Return Value**

Here's the fix for this!

This:



```


//Make as many Unique Overloads as you want!
FORCEINLINE FArchive& operator<<(FArchive &Ar, UCustomSaveGame* SaveGameData )
{
    if(!SaveGameData) return;
    //~
    
    Ar << SaveGameData->NumItemsCollected;  //int32
    Ar << SaveGameData->PlayerLocation;  //FVector
    Ar << SaveGameData->ArrayOfRotationsOfTheStars; //TArray<FRotator>
}


```



Becomes this:



```


//Make as many Unique Overloads as you want!
FORCEINLINE FArchive& operator<<(FArchive &Ar, UCustomSaveGame* SaveGameData )
{
    if(!SaveGameData) return;
    //~
    
    Ar << SaveGameData->NumItemsCollected;  //int32
    Ar << SaveGameData->PlayerLocation;  //FVector
    Ar << SaveGameData->ArrayOfRotationsOfTheStars; //TArray<FRotator>

    return Ar;
}


```