Raised This Month: $ Target: $400
 0% 

my get steamid plugin help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 10-31-2005 , 02:52  
Reply With Quote #2

This:
Code:
register_clcmd("say", "SaySteamID")

Should be this:
Code:
register_clcmd("say steamid", "SaySteamId") register_clcmd("say /steamid", "SaySteamId")

And:

Code:
SteamID(32, %id, 34)  //This doesn't do anything, the function isn't even defined

Should be:

Code:
new steamID[35]  //This will store the steam id. get_user_authid(id, steamID, 34)  //This will get the steam id.

And:

Code:
client_print(id,print_chat, "Your Steam ID is %id")

Should be:

Code:
client_print(id,print_chat, "Your Steam ID is %s", steamID)

And you should rewrite the whole function to this:

Code:
public SaySteamId(id) {    new steamID[35]    get_user_authid(id, steamID, 34)    client_print(id, print_chat, "Your Steam ID is %s", steamID) }

Well usually I wouldn't go into the details like that but it had to be completely rewritten. Anyways I suggest that you look at www.amxmodx.org/funcwiki.php sometimes. It is very useful. And also you should look at some of the scripting examples in http://www.amxmodx.org/doc/source/scripting/index.htm . Pretty useful.
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My logevent plugin
Batman/Gorlag 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:38.


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