AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   my get steamid plugin help (https://forums.alliedmods.net/showthread.php?t=20041)

Sir-LaggAlot 10-31-2005 02:31

my get steamid plugin help
 
1 Attachment(s)
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 :cry: :cry: :cry: :cry:

Batman/Gorlag 10-31-2005 02:52

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.

v3x 10-31-2005 04:43

Btw, http://forums.alliedmods.net/showthread.php?t=16734 :P

Batman/Gorlag 10-31-2005 06:02

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 :wink: .

Sir-LaggAlot 10-31-2005 10:49

Opps, didn't see that :lol:
Thnx


All times are GMT -4. The time now is 23:38.

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