Hey guys, ive written a quick script that punishes people for swearing in my channel, i have a points system, by adding the user with there $hand, and then setting xtra info to a punishment level. However, they can avoid this entirely by changing there nickname, is there anything i can do, so that g...
What i need ideally, is to read the php array into a tcl array, if i can do that, it would be perfect, only im stuggling to think of a way that isnt far beyond my tcl skills.
Hey guys, im struggling with a script im trying to write, i have a php script which dumps an array into a browser, and a tcl script that parses several bits of information from that array dump. However, i now have several sections which are identical appart from the stored information im trying to r...
Hey guys, im having problems with my regexp, it should technically work, but it refuses to, so ill give you what i have and see if anyone can spot my mistake/s for me :D Cheers Current code : regexp -nocase -- {\[hostname\] => .+} $html hostname Code im trying to parse <pre>Array ( [nsserver] => Arr...
hlstats is a perl script that gathers information from the logs of a hl server, and uses it to generate a stats page for the players who use that server. This script simply allow an irc user to find information from that page and display it in irc. although right now it only shows one stat (Kills Pe...
Yep, sorry about that, i accedently deleted a character when removing some trash code, and it make it check the wrong html var, hence no result. its all fixed and working now, thanks
Yes you read correctly this is alpha, this is a script provided to prove that this IS possible, and to provide a base code for users who wish to complete there own, its currently setup for NS not CS, but it should give you a good idea of where to begin. I warn you now, that iam not a good tcl coder!...
ive attempted to do what you suggested, however it never seems to find the Kill per Deaths: Im wondering if ive split the file wrong, ive written $::html to a text document, and it comes out exactly as it is in the source. so im not sure why it wouldnt work my code is : set notFound 1 set lines [spl...
I think i explained badly, the regexp works on the entire source of the website, not just the two lines i posted, thats the reason i wanted to get the words Kills per Death: so that i was sure it was the right data. the problem i have is the two seperate lines i dont know how to deal with. but thank...
That gives me a result of 4.01, which im not sure where its getting it from but its not correct. The entire source that the regexp needs to search through is the source of this page : http://ns.wireplay.co.uk/hlstats.php?mode=playerinfo&player=55 if thats any help, i really dont understand that ...
Hey, im still learning regular expressions, and im pretty much stumped on this one, several people have tried to help me already and its just not right yet, im using a http package to read a website, and then parse for a specific piece of info on that website, the information im after is stored in a...