Author Topic: First Actual use of E2Edit  (Read 325 times)

0 Members and 1 Guest are viewing this topic.

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
First Actual use of E2Edit
« 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.
-Admin Application-

Follow the rules or I will you.

Offline SheepsAholy

  • Regular Member
  • ***
  • Posts: 211
  • Karma: +8/-2
  • Gender: Male
  • BAAA or GTFO
    • View Profile
Re: First Actual use of E2Edit
« Reply #1 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.
« Last Edit: July 06, 2010, 12:18:11 AM by SheepsAholy »




Offline Pingaz

  • Magic woz ere, Watching you
  • Sr. Member
  • ****
  • Posts: 335
  • Karma: +1/-12
  • Gender: Male
  • :L
    • View Profile
Re: First Actual use of E2Edit
« Reply #2 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...
pingaz:lrn2epic?
newfag:inorite


Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: First Actual use of E2Edit
« Reply #3 on: July 06, 2010, 12:14:07 AM »
Actually I did, just now

:D!

I AM TEH WINZIP!!
-Admin Application-

Follow the rules or I will you.

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: First Actual use of E2Edit
« Reply #4 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.
-Admin Application-

Follow the rules or I will you.

Offline SheepsAholy

  • Regular Member
  • ***
  • Posts: 211
  • Karma: +8/-2
  • Gender: Male
  • BAAA or GTFO
    • View Profile
Re: First Actual use of E2Edit
« Reply #5 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.




Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: First Actual use of E2Edit
« Reply #6 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
-Admin Application-

Follow the rules or I will you.

Offline Sanders

  • THIS IS MY FINAL FORM
  • Übermensch
  • *****
  • Posts: 794
  • Karma: +37/-21
  • Gender: Male
  • BAHAHAHAHAHAHAH!
    • View Profile
Re: First Actual use of E2Edit
« Reply #7 on: July 06, 2010, 01:20:25 AM »
Above poster is a newb.

Edit:

Below poster is also a newb
« Last Edit: July 06, 2010, 01:31:00 AM by Sanders »


Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: First Actual use of E2Edit
« Reply #8 on: July 06, 2010, 01:25:40 AM »
>Implying I didn't help you with the mathematics on your rotary engine

^^
« Last Edit: July 06, 2010, 01:29:01 AM by Кгձรհεг »
-Admin Application-

Follow the rules or I will you.