mIRC Home    About    Download    Register    News    Help

Print Thread
#169671 26/01/07 09:04 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Code:
 Controle
.Add vop:/write Vops.Ini $$1- | /load -rs Vops.Ini | HALT }


It works... But it write't the Vops.Ini.. But it doesn't add the nick on it... If i open the "Vops.Ini" i need to see if i clicked on Duck_Power and did: Add vop:

Php Code:
 Duck_Power  


But it doesn't write!!

And i DONT have /help thins, and i cant DOWNLOAD it anymore!


Squee whenever a squee squee's. Squee whenever a squee does not squee.
DuXxXieJ #169686 26/01/07 10:20 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
SomeBody...?


Squee whenever a squee squee's. Squee whenever a squee does not squee.
DuXxXieJ #169687 26/01/07 10:23 PM
Joined: Oct 2006
Posts: 68
B
Babel fish
Offline
Babel fish
B
Joined: Oct 2006
Posts: 68
no one can or dont want to help us lolz laugh


At Your Service.
DuXxXieJ #169691 26/01/07 10:36 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
It is against forum rules to bump posts. Keep in mind that people work and do other things and cannot sit here 24/7 answering your questions right away. Be patient or you'll find that no one WILL help you because you'll annoy them.

As for your question, you need to provide more code... where do you have that? I assume a menu, but which one? Show the full code for it.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #169695 26/01/07 10:42 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
That is it.. It is from my bot.

Only that is in the nicklist popup...


Quote:
BuTleR : No one wanna help you... or can't :p


haha! smile


Squee whenever a squee squee's. Squee whenever a squee does not squee.
DuXxXieJ #169696 26/01/07 10:43 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
But the problem is :
Php Code:
 The $$1-  


It needs to be a other one..


Squee whenever a squee squee's. Squee whenever a squee does not squee.
DuXxXieJ #169698 26/01/07 10:49 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Change that so that instead of writing anything, you ECHO the $$1- instead. That way, you can make sure it's giving you $$1- data (the nick(s)).


Invision Support
#Invision on irc.irchighway.net
DuXxXieJ #169716 27/01/07 01:37 AM
Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
... Im curious as to why you're wanting to write to an ini file, and immediately load that file. Explain in detail what you're wanting to do, I'm sure that it'd be much easier to assist you...

Edit:
If you're attempting to make an auto voice script, look at miRC own /avoice. Usage is /avoice "Nick" to add /avoice -l to list, /avoice -r "entry" to remove. But this may not be what you're wanting to do.

Last edited by drc4; 27/01/07 01:41 AM.
drc4 #169737 27/01/07 03:51 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
...

I just wanna have to add names in a .ini... That's all. =)

But the $$1(-) is wrong, that's the problem.. That is what im asking.. If somebody know's what it needs to be, to write a nickname in the .ini...


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Riamus2 #169738 27/01/07 03:53 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Originally Posted By: Riamus2
Change that so that instead of writing anything, you ECHO the $$1- instead. That way, you can make sure it's giving you $$1- data (the nick(s)).


You mean this?

Code:
 Controle
.Add vop:/write Vops.Ini $$1 | /echo $$1 | HALT }


??


Squee whenever a squee squee's. Squee whenever a squee does not squee.
DuXxXieJ #169744 27/01/07 05:21 PM
Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
If you're wanting to write to multiple things to a file, writing to a txt file would me more sufficient. Writing to an ini file, you must specify both a section and a value before the item. And when writing to a txt file, you must use /writeini, not /write. So, to do what I think you're wanting, you could use
Code:
 menu nicklist {
  Add Controle
  .Add Vop:{ write vop.txt $snicks }
} 
This would write anyone you select in the nicklist, to the vop.txt file. But you must select the nick in the nicklist.

DuXxXieJ #169753 27/01/07 07:12 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Quote:
You mean this?

Code:
 Controle
.Add vop:/write Vops.Ini $$1 | /echo $$1 | HALT }


??


Yes, you can try that echo. See what it echoes. That way you know if it's working. It worked fine here.


Invision Support
#Invision on irc.irchighway.net
drc4 #169755 27/01/07 07:16 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Originally Posted By: drc4
If you're wanting to write to multiple things to a file, writing to a txt file would me more sufficient. Writing to an ini file, you must specify both a section and a value before the item. And when writing to a txt file, you must use /writeini, not /write.


You don't HAVE to write sections and items in an INI file. You can have anything in an INI file... even a multi-page story. However, to use it like an INI file, you need to format it correctly. You also don't HAVE to use /writeini with an INI file. That's easier than using /write, but is not necessary.

As for $$snicks, that works, but so does $$1-. The difference is that $$snicks gives the output with commas and $$1- gives the output with spaces.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #169851 29/01/07 06:10 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Originally Posted By: Riamus2
Quote:
You mean this?

Code:
 Controle
.Add vop:/write Vops.Ini $$1 | /echo $$1 | HALT }


??


Yes, you can try that echo. See what it echoes. That way you know if it's working. It worked fine here.


It doesn't echo. Look:

Php Code:
 * /echo: insufficient parameters  


then i see that....


Squee whenever a squee squee's. Squee whenever a squee does not squee.
DuXxXieJ #169852 29/01/07 06:12 PM
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
But if i change the

Php Code:
 $$1  


to

Php Code:
 $$1-  


it echos.. and the nickname who was echod, it's add to the list. so : THANKS FOR THE HELP!

=)


Squee whenever a squee squee's. Squee whenever a squee does not squee.
DuXxXieJ #169853 29/01/07 07:12 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Sorry. I didn't realize that you removed the - from $$1 in that post.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard