mIRC Home    About    Download    Register    News    Help

Print Thread
#151710 21/06/06 01:43 AM
Joined: Jun 2005
Posts: 37
A
Armymen Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Jun 2005
Posts: 37
Can i create variable in a remote?
like if i whant to add :

Code:
 %cdpv.msg 12!8*12!0!!4!! 9Bonjours, Je vais vous répondre sous peu 4:11-4)
%cdpv.msg2
%cdpv.msg3 Desoler je n'est pas le temp de vous parler, désoler :( 


i whant that code integrate when i load a remote that is put on the Variable.
tanks

#151711 21/06/06 02:15 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Variables are used to store information. They are located in scripts that are loaded into the Remotes section of your mIRC.
I'm not quite sure what you're looking for, and I apologize if I've gotten this completely screwed up, but for code you would use something like
Code:
set %cdpv.msg 12!8*12!0!!4!! 9Bonjours, Je vais vous répondre sous peu 4:11-4)
set  %cdpv.msg3 Desoler je n'est pas le temp de vous parler, désoler :( 
 


You'll note that I didn't specify a set command for the %cdpv.msg2 variable (as in your example) due to the fact that you can't send a blank line in that manner. There are ways of making it look like you're sending a blank line, but for the most part something like that is more trouble than it's worth.

Due to your code, I'm going to presume that you're better in French than English, and if my French was better I would've posted this in both languages to make it easier for you and whomever else reads this post.

I hope this explains the situation. If not, please try to clarify what it is you're trying to do.

#151712 21/06/06 09:27 AM
Joined: Dec 2005
Posts: 58
S
Babel fish
Offline
Babel fish
S
Joined: Dec 2005
Posts: 58
Write Your Codes To .Ini File. And Write as That ;

[script]
n1=Your Codes
n2=code..
n3=c0de..
n4=.
n5=.
[variables]
n1=%var1 Try Try Try
n2=%var2 It's Very Good Day
n3=%var3 lol

When You Load Your Code Variables Will Load Auto..


i like that
#151713 21/06/06 09:42 AM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
you shouldn't directly write to the files, especially ini files...

why not just use the ON LOAD event to set the vars as soon as the script is loaded?


If it ain't broken, don't fix it!
#151714 21/06/06 02:36 PM
Joined: Dec 2005
Posts: 58
S
Babel fish
Offline
Babel fish
S
Joined: Dec 2005
Posts: 58
Same (:


i like that
#151715 21/06/06 10:06 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Code:
on *:load:{
  set %cdpv.msg 12!8*12!0!!4!! 9Bonjours, Je vais vous répondre sous peu 4:11-4)
  set %cdpv.msg2
  set %cdpv.msg3 Desoler je n'est pas le temp de vous parler, désoler :(
}

#151716 25/06/06 08:31 PM
Joined: Jun 2005
Posts: 37
A
Armymen Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Jun 2005
Posts: 37
Quote:
Code:
on *:load:{
  set %cdpv.msg 12!8*12!0!!4!! 9Bonjours, Je vais vous répondre sous peu 4:11-4)
  set %cdpv.msg2
  set %cdpv.msg3 Desoler je n'est pas le temp de vous parler, désoler :(
}

tanks laugh


Link Copied to Clipboard