# Execute Dedicated Server function from player character

**URL:** <https://forums.unrealengine.com/t/execute-dedicated-server-function-from-player-character/342934>\
**Category:** Character & Animation\
**Tags:** dedicated-server, unreal-engine, functions, CPP, question\
**Created:** [January 2, 2016, 9:32pm UTC](https://forums.unrealengine.com/t/execute-dedicated-server-function-from-player-character/342934 "2016-01-02T21:32:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![edcolmar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Post date:** [January 2, 2016, 9:32pm UTC](https://forums.unrealengine.com/t/execute-dedicated-server-function-from-player-character/342934/1 "2016-01-02T21:32:29Z")

</div>

Disclaimer: I’m an unreal noob. Thanks in advance for any help!

I have a project that is coming together nicely, but I’m stuck again.

Dedicated server - working

Clients connect and authenticate - working

Map changes and clients follow - working

Pickup item on level to win the game - problem. Not calling the server function.

I built my pickup item based on the coin tutorial video.

In this case, the server knows about the pickup item, and I see the BP debug messages in my server console. I just want the server to execute a function.

MMDEMO1Character.h

```
	UFUNCTION(BlueprintCallable, Category = "LEET", Server, Reliable, WithValidation)
		void GetWinnerInfo( const int32& playerID);

	UFUNCTION(BlueprintCallable, Category = "LEET", Client, Reliable)
		void SendWinnerInfo(const int32& playerID);

```

MMDEMO1Character.cpp

```
void AMMDEMO1Character::GetWinnerInfo_Implementation(const int& playerID)
{
	UE_LOG(LogTemp, Log, TEXT("[LEET] AMMDEMO1Character GetWinnerInfo"));

	SendWinnerInfo( playerID);

	UMyGameInstance* TheGameInstance = Cast<UMyGameInstance>(GetWorld()->GetGameInstance());
	//TheGameInstance->AuthorizePlayer(PlatformID, MatchKey, playerID);

}

bool AMMDEMO1Character::GetWinnerInfo_Validate(const int32& playerID)
{
	UE_LOG(LogTemp, Log, TEXT("[LEET] AMMDEMO1Character::GetWinnerInfo_Validate Validate"));
	return true;
}

void AMMDEMO1Character::SendWinnerInfo_Implementation(const int32& playerID)
{
	// do stuff on client here
	UE_LOG(LogTemp, Log, TEXT("[LEET] AMMDEMO1Character::SendWinnerInfo_Implementation"));
}

```

BP

 ![72632-ss2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/a/d4afa7a959aeb55150cccf7c7a69ebee1d41d672.jpeg)
