AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [help] returnig steamid help (https://forums.alliedmods.net/showthread.php?t=173003)

EDUTz 11-28-2011 17:03

[help] returnig steamid help
 
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)

Devil259 11-28-2011 18:46

Re: [help] returnig steamid help
 
new szName[ 32 ]
get_user_name( index , szName , charsmax( szName ) )

fysiks 11-28-2011 21:53

Re: [help] returnig steamid help
 
Show the whole code and explain better what you want your plugin to do.

EDUTz 11-29-2011 05:07

Re: [help] returnig steamid help
 
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 :oops:)


All times are GMT -4. The time now is 08:27.

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