Raised This Month: $51 Target: $400
 12% 

[CSGO] Getting info from advanced votes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jackol1234
Senior Member
Join Date: Apr 2015
Old 06-04-2016 , 23:26   [CSGO] Getting info from advanced votes
Reply With Quote #1

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 menuint num_votesint num_clients, const int[][] client_infoint num_items, const int[][] item_info)
{
    for (
int i 0num_clientsi++)
    {
        
char name[64];
        
int client GetClientOfUserId(i);
        
GetClientName(clientname64);
        
LogToFileEx(g_sLogPath"%s voted for %i"nameclient_info[i][VOTEINFO_CLIENT_ITEM]);
    }

Although this returned the name of the server instead.
__________________
Accepting PM's for private requests!
Jackol1234 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode