I'm trying to get a clients name and what they voted for so I can log it from the VoteHandler. Here is what I have so far:
PHP Code:
public void H_VoteForceRTVCallback(Menu menu, int num_votes, int num_clients, const int[][] client_info, int num_items, const int[][] item_info)
{
for (int i = 0; i < num_clients; i++)
{
char name[64];
int client = GetClientOfUserId(i);
GetClientName(client, name, 64);
LogToFileEx(g_sLogPath, "%s voted for %i", name, client_info[i][VOTEINFO_CLIENT_ITEM]);
}
}
Although this returned the name of the server instead.
__________________