Skip to content

Mark DataPacks as references in callback definitions #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripting/include/gameme.inc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ forward onGameMEStatsPublicCommand(command, client, String: message_prefix[], &H
forward onGameMEStatsTop10(command, client, String: message_prefix[], &Handle: datapack);
forward onGameMEStatsNext(command, client, String: message_prefix[], &Handle: datapack);

typedef gameMEStatsCallback = function Action(int command, int payload, int client, Handle datapack);
typedef gameMEStatsCallback = function Action(int command, int payload, int client, Handle &datapack);
/**
* Query gameME Stats data from a client
*
Expand All @@ -57,7 +57,7 @@ typedef gameMEStatsCallback = function Action(int command, int payload, int clie
native QueryGameMEStats(String: request[], client, gameMEStatsCallback: callback, payload = 0);


typedef gameMEStatsTop10Callback = function Action(int command, int payload, Handle datapack);
typedef gameMEStatsTop10Callback = function Action(int command, int payload, Handle &datapack);
/**
* Query Top10 players from gameME Stats
*
Expand All @@ -70,7 +70,7 @@ typedef gameMEStatsTop10Callback = function Action(int command, int payload, Han
native QueryGameMEStatsTop10(String: request[], client, gameMEStatsTop10Callback: callback, payload = 0);


typedef gameMEStatsNextCallback = function Action(int command, int payload, int client, Handle datapack);
typedef gameMEStatsNextCallback = function Action(int command, int payload, int client, Handle &datapack);
/**
* Query next players from gameME Stats for s specified client
*
Expand Down