Raised This Month: $ Target: $400
 0% 

my get steamid plugin help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sir-LaggAlot
Member
Join Date: Oct 2005
Location: USA
Old 10-31-2005 , 02:31   my get steamid plugin help
Reply With Quote #1

i cant compile this plugin.. it gives me some errors that i cant compile.
all i want it to do is when other people tyep steamid or /steamid, it shows them their steam id..

pplz help
Attached Files
File Type: sma Get Plugin or Get Source (get_steamid.sma - 621 views - 627 Bytes)
Sir-LaggAlot is offline
Send a message via AIM to Sir-LaggAlot
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
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-31-2005 , 04:43  
Reply With Quote #3

Btw, http://forums.alliedmods.net/showthread.php?t=16734
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 10-31-2005 , 06:02  
Reply With Quote #4

Wonder why it hasn't been approved yet, I say it's pretty good. But didn't know a steam ID plugin was already made. Good job v3x .
__________________
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
Sir-LaggAlot
Member
Join Date: Oct 2005
Location: USA
Old 10-31-2005 , 10:49  
Reply With Quote #5

Opps, didn't see that
Thnx
Sir-LaggAlot is offline
Send a message via AIM to Sir-LaggAlot
Reply


Thread Tools
Display Modes

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