.:`=-~rANdOm~`-=:.

Welcome to .:`=-~rANdOm~`-=:. => General Chat => Topic started by: Krasher on July 05, 2010, 11:49:50 PM

Title: First Actual use of E2Edit
Post by: Krasher on July 05, 2010, 11:49:50 PM
Code: [Select]
@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.
Title: Re: First Actual use of E2Edit
Post by: 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: [Select]
@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.
Title: Re: First Actual use of E2Edit
Post by: Pingaz on July 06, 2010, 12:08:57 AM
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...
Title: Re: First Actual use of E2Edit
Post by: Krasher on July 06, 2010, 12:14:07 AM
Actually I did, just now

:D!

I AM TEH WINZIP!!
Title: Re: First Actual use of E2Edit
Post by: Krasher on July 06, 2010, 12:19:41 AM
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: [Select]
@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.
Title: Re: First Actual use of E2Edit
Post by: SheepsAholy on July 06, 2010, 12:24:47 AM
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.
Title: Re: First Actual use of E2Edit
Post by: Krasher on July 06, 2010, 12:28:47 AM
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
Title: Re: First Actual use of E2Edit
Post by: Sanders on July 06, 2010, 01:20:25 AM
Above poster is a newb.

Edit:

Below poster is also a newb
Title: Re: First Actual use of E2Edit
Post by: Krasher on July 06, 2010, 01:25:40 AM
>Implying I didn't help you with the mathematics on your rotary engine

^^