Welcome to .:`=-~rANdOm~`-=:. > General Chat
First Actual use of E2Edit
Krasher:
--- Code: ---@name Test
@persist [Players Array]:array
if(first()|duped()){
runOnChat(1)
Version=0.1
hint("Steam ID Retriever v"+Version)
hint("!scan, to scan players Steam ID and Names")
}
findByClass("player")
Players=findToArray()
if(owner():lastSaid():lower()=="!scan"
for(I=1,Players:count()){
(Array[I,string]=Players[I,entity]:name()+" || "+steamID())
}
for(K=1,Players:count()){
print(Array[1,string])
}
}
--- End code ---
Could someone tell me if that works. Made it just now cuz I'm bored.
SheepsAholy:
I'll check it gimme a sec I'll edit this post when I do.
EDIT:
It had a few errors in it, so I went ahead and patched it for you:
--- Code: ---@name Test
@persist [Players Array]:array
if(first()|duped()){
runOnChat(1)
Version=0.1
hint("Steam ID Retriever v"+Version,5)
hint("!scan, to scan players Steam ID and Names",5)
}
findByClass("player")
Players=findToArray()
if(owner():lastSaid():lower()=="!scan")
{
for(I=1,Players:count())
{
Array[I,string] = Players[I,entity]:name() + " || " + Players[I,entity]:steamID()
}
for(K=1,Players:count())
{
print(Array[1,string])
}
}
--- End code ---
Here's a list of the things that was wrong:
-the hint feature uses hint(S,N) S of course is what it says, the N is how long the hint stays.
-(Array[I,string]=Players[I,entity]:name()+" || "+steamID()) should of been Array[I,string]=Players[I,entity]:name()+" || "+steamID()
-forgot using "{ and }" only once.
Pingaz:
--- Quote from: SheepsAholy on July 05, 2010, 11:57:42 PM ---I'll check it gimme a sec I'll edit this post when I do.
--- End quote ---
Congrats, you just made the 10,000th post in general chat...
Krasher:
Actually I did, just now
:D!
I AM TEH WINZIP!!
Krasher:
--- Quote from: SheepsAholy on July 05, 2010, 11:57:42 PM ---I'll check it gimme a sec I'll edit this post when I do.
EDIT:
It had a few errors in it, so I went ahead and patched it for you:
--- Code: ---@name Test
@persist [Players Array]:array
if(first()|duped()){
runOnChat(1)
Version=0.1
hint("Steam ID Retriever v"+Version,5)
hint("!scan, to scan players Steam ID and Names",5)
}
findByClass("player")
Players=findToArray()
if(owner():lastSaid():lower()=="!scan")
{
for(I=1,Players:count())
{
Array[I,string] = Players[I,entity]:name() + " || " + Players[I,entity]:steamID()
}
for(K=1,Players:count())
{
print(Array[1,string])
}
}
--- End code ---
Here's a list of the things that was wrong:
-the hint feature uses hint(S,N) S of course is what it says, the N is how long the hint stays.
-(Array[I,string]=Players[I,entity]:name()+" || "+steamID()) should of been Array[I,string]=Players[I,entity]:name()+" || "+steamID()
-forgot using "{ and }" only once.
--- End quote ---
You should know that I made this in E2Edit, and I haven't played GMod in 6 days.
Navigation
[0] Message Index
[#] Next page
Go to full version