too many actual parameters for macro 'DECLARE_MULTICAST_DELEGATE_OneParam'

I have an error (too many actual parameters for macro ‘DECLARE_MULTICAST_DELEGATE_OneParam’) i’m using 4.19.2 and visual studio 2017 Someone know how I can fix this?

here is the actual code;

DECLARE_MULTICAST_DELEGATE_OneParam(FGetSteamFriendsDelegate, const TArray&, Results);

DECLARE_MULTICAST_DELEGATE_OneParam(FGetSteamFriendsDelegate, const TArray&, Results);

You dont need argument name in delegate decleration

1 Like

Can you show me a code example i’m new with c++ I don’t know how macro work. Im Following this tutorial and I’m stuck at this part.

Well i said you don’t need argument names… so remove them :stuck_out_tongue:

DECLARE_MULTICAST_DELEGATE_OneParam(FGetSteamFriendsDelegate, const TArray&);