.:`=-~rANdOm~`-=:.
Welcome to .:`=-~rANdOm~`-=:. => General Chat => Topic started by: Krasher on July 05, 2010, 11:49:50 PM
-
@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])
}
}
Could someone tell me if that works. Made it just now cuz I'm bored.
-
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:
@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])
}
}
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.
-
I'll check it gimme a sec I'll edit this post when I do.
Congrats, you just made the 10,000th post in general chat...
-
Actually I did, just now
:D!
I AM TEH WINZIP!!
-
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:
@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])
}
}
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.
You should know that I made this in E2Edit, and I haven't played GMod in 6 days.
-
yeah I know, that's why I wrote down the things that was wrong lol. I figured you'd know the fix if you was coding it in gmod.
-
yeah I know, that's why I wrote down the things that was wrong lol. I figured you'd know the fix if you was coding it in gmod.
it was where you explained how the hint functions worked lol.
me not newb :c
-
Above poster is a newb.
Edit:
Below poster is also a newb
-
>Implying I didn't help you with the mathematics on your rotary engine
^^