Raised This Month: $ Target: $400
 0% 

[help] returnig steamid help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 11-28-2011 , 17:03   [help] returnig steamid help
Reply With Quote #1

this function return me steamid .. how can i modify it to return player nick ? i'm not so good at english ..
i ment it gives me the "error" below if i don't type a steamid, but i want to work with user names in this case.
usage: amx_command steamid ...

Quote:
register_concmd("amx_command", "cmd", ADMIN_LEVEL_C, "steamid")

public cmd(id,level,cid)
{
if (!cmd_access(id,level,cid,3))
return PLUGIN_HANDLED


read_args(steamid, 50)
EDUTz is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 11-28-2011 , 18:46   Re: [help] returnig steamid help
Reply With Quote #2

new szName[ 32 ]
get_user_name( index , szName , charsmax( szName ) )
Devil259 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-28-2011 , 21:53   Re: [help] returnig steamid help
Reply With Quote #3

Show the whole code and explain better what you want your plugin to do.
__________________
fysiks is offline
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 11-29-2011 , 05:07   Re: [help] returnig steamid help
Reply With Quote #4

i so dumb .. i should sleep more, the reason it gave me the usage issue is because i typed less args than cmd_access said


Close this topic please, and thank you for helping me (to read again the syntax )
EDUTz 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 08:27.


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