View unanswered posts | View active topics It is currently Mon Dec 30, 2024 11:23 pm



Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
 Halp with some code 
Author Message
User avatar

Joined: Wed Nov 22, 2006 3:19 pm
Posts: 2073
Reply with quote
Post Re: Halp with some code
Geti wrote:
looking at my post, and then back to yours, it looks like you're seeing color tags for some reason.. i cant see them in my post though, so im thinking its something your end. i am copypasting from notepad++, so i can indent easily. no idea why that would lead to color tags in your quote of my post without them though.


I think he tried to highlight the 'string.find (table.concat(actorlist),actor.PresetName)' part.
Can't do that if there are [code] tags around.


Wed Jun 03, 2009 9:18 pm
Profile
User avatar

Joined: Fri Jan 26, 2007 3:22 am
Posts: 1451
Reply with quote
Post Re: Halp with some code
MaximDude wrote:
I think he tried to highlight the 'string.find (table.concat(actorlist),actor.PresetName)' part.


holy sh­it does it really take three posts of nothing to realize this

THAT IS WRONG.


Thu Jun 04, 2009 3:00 am
Profile
User avatar

Joined: Wed Nov 22, 2006 3:19 pm
Posts: 2073
Reply with quote
Post Re: Halp with some code
Mind pointing out whay exactly is wrong?
Personally, I have no idea.


Thu Jun 04, 2009 4:56 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Halp with some code
but i dont get why you're complaining. it works. O_o
lets try a practical example, shall we children?
Code:
actorlist = {"Browncoat Light"}; for actor in MovableMan.Actors do if string.find(table.concat(actorlist),actor.PresetName) then print ("found") else print ("not found") end end
poke that line into the console. it should print "not found" to the console. now, spawn a browncoat light, and run the line again. OH MY GOD IT WORKS HOW THE ♥♥♥♥ DID IT DO THAT?
Attachment:
File comment: here is a screenshot. the first print is when it found the brain, and said "no, not a browncoat light", as is the second print (because the brain is before the browncoat on the MOID list, it got checked again first), however lo and behold, the last one shows that it has found the browncoat.
DemoOfConcatenatedTableSearching.png [16.83 KiB]
Not downloaded yet
my point is, it works. what are you complaining about daman?


Thu Jun 04, 2009 4:59 am
Profile WWW
User avatar

Joined: Fri Jan 26, 2007 3:22 am
Posts: 1451
Reply with quote
Post Re: Halp with some code
If you can't see why you should just leave because you really don't know anything.


Thu Jun 04, 2009 1:30 pm
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Halp with some code
Obviously i do know something, seeing how my code works and the code you said should work doesnt.
do you mean the fact that there is a space after string.find? if that give an error you can have some apologies, but i just copypasted the code once i got it working, so my CC doesnt seem to care..


Thu Jun 04, 2009 9:18 pm
Profile WWW
User avatar

Joined: Fri Jan 26, 2007 3:22 am
Posts: 1451
Reply with quote
Post Re: Halp with some code
Geti wrote:
Obviously i do know something, seeing how my code works and the code you said should work doesnt.
do you mean the fact that there is a space after string.find? if that give an error you can have some apologies, but i just copypasted the code once i got it working, so my CC doesnt seem to care..


are you stupid or what

I didn't post any code.

And you obviously don't know anything, as clearly outlined by your practices.


Fri Jun 05, 2009 3:58 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Halp with some code
i didnt say the code you posted, i said the code you said should work. his initial code. Oops, wrong topic, i was thinking of the one with DSMK2. You win there.
Also i don't really see why you're trolling so hard. It works. O_o
It looks for the actor's presetname in the string formed by the concatenated table "actorlist" which is full of all the actors he wants it to work on. If it didnt do this i'd accept i was wrong, but it does, so i wont.


Fri Jun 05, 2009 8:46 am
Profile WWW
User avatar

Joined: Wed Nov 22, 2006 3:19 pm
Posts: 2073
Reply with quote
Post Re: Halp with some code
Wait... So all this time you thought this was another topic?? -__-
But you say the code works, so i'm still gonna try it when i'm back to making the thing.


Fri Jun 05, 2009 1:42 pm
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Halp with some code
no, for that small argument i thought it was another topic.
the code i posted helping you get table searching working works just fine.


Fri Jun 05, 2009 1:54 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 25 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.041s | 14 Queries | GZIP : Off ]