mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 122
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Oct 2005
Posts: 122
hey got the following script but the $read bit doesnt seem to be working, basically if %x is already in the text file it shouldnt write it again, but it keeps on writing it

Code:
    if (!$read(listing $+ $replace($date,/,-) $+ .txt, w, * %x * )) {
  


im sure its something simple im missing

Edit: hixxy it actually isnt what your thinking, these are for "book packs" that we offer our customers.

Last edited by onesikgypo; 15/02/06 01:32 PM.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Sorry but this forum doesn't help with filesharing.

Joined: Oct 2005
Posts: 122
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Oct 2005
Posts: 122
View Edited

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Right ok because of this thread I'm going to give you the benefit of the doubt.

You had more code than that in your original post and it showed that each line ended with pack: %x, therefore you should be using * %x as a wildcard instead of * %x * in the $read command.

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
if (!$read(listing $+ $replace($date,/,-) $+ .txt, w, $+(*,%x,*))) {
^ That would find any occurance of %x's contents in the file, however as hixxy said, if your actually looking for %x being on the end of the string with other words then a space before it its.
if (!$read(listing $+ $replace($date,/,-) $+ .txt, w, * %x)) {

Quote:
these are for "book packs" that we offer our customers.

Interesting reading these books are they?


Link Copied to Clipboard