mIRC Homepage

Variable

Posted By: Armymen

Variable - 21/06/06 01:43 AM

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
Posted By: RusselB

Re: Variable - 21/06/06 02:15 AM

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.
Posted By: SCNDRL

Re: Variable - 21/06/06 09:27 AM

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..
Posted By: Doqnach

Re: Variable - 21/06/06 09:42 AM

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?
Posted By: SCNDRL

Re: Variable - 21/06/06 02:36 PM

Same (:
Posted By: DaveC

Re: Variable - 21/06/06 10:06 PM

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 :(
}
Posted By: Armymen

Re: Variable - 25/06/06 08:31 PM

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
© 2019 mIRC Discussion Forums