Raised This Month: $ Target: $400
 0% 

Solved [HELP] VoteKick Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-10-2017 , 15:34   Re: [HELP] VoteKick Menu
Reply With Quote #1

Quote:
Originally Posted by LegacyCode View Post
Would be nice to post your solution, too.

- LegacyCode
Well, shure. A good friend helped me, here is what solved my problem.

Code:
get_user_name(i,szPlayerName,charsmax(szPlayerName))
new userid_as_string[16];
num_to_str(get_user_userid(i), userid_as_string, charsmax(userid_as_string));
menu_additem(menu_kick, szPlayerName, userid_as_string, 0);
And then I just used menu_item_getinfo to get the userid_as_string info from szData.
DarthMan is offline
LegacyCode
Member
Join Date: Apr 2017
Old 04-10-2017 , 16:07   Re: [HELP] VoteKick Menu
Reply With Quote #2

Quote:
Originally Posted by DarthMan View Post
Well, shure. A good friend helped me, here is what solved my problem.

Code:
get_user_name(i,szPlayerName,charsmax(szPlayerName))
new userid_as_string[16];
num_to_str(get_user_userid(i), userid_as_string, charsmax(userid_as_string));
menu_additem(menu_kick, szPlayerName, userid_as_string, 0);
And then I just used menu_item_getinfo to get the userid_as_string info from szData.
Thank you! Also, mark your thread as "solved" by editing the title and set the prefix to [SOLVED]

- LegacyCode
LegacyCode is offline
Reply



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 18:02.


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