mIRC Homepage

some general questions

Posted By: sparkicks

some general questions - 30/11/05 02:50 PM

first can i do a if (condition1) + (condition2)
and can i do an "or" there instead

second im making a login system with my bot and im making it so when you msg the bot with your username and password it logs you in.
what you
change nick
part
exit
it logs you out . how do i set those conditios and am i leaving anything out

one more:
how do i edit or remove and add a name to an ini i cant find $writeini in mircs help file... -_^
Posted By: schaefer31

Re: some general questions - 30/11/05 03:28 PM

Code:
if (condition1 == somevalue && condition2 == somevalue) {
  execute some commands
}


&& means and
|| means or

Also, the command you're looking for is /writeini
For more info type /help /writeini
Posted By: sparkicks

Re: some general questions - 30/11/05 04:04 PM

writeini doesnt come up i typed it all that comes up thats close is wma... :S

edit :nvm got it but how do u edit something??
Posted By: MikeChat

Re: some general questions - 30/11/05 04:13 PM

it is literal
in mIRC type /help /writeini
if you type /help writeini it wont find it

also you will have to scroll down the page
Posted By: sparkicks

Re: some general questions - 30/11/05 04:17 PM

yea thanks it was a typo...
how do u edit something thats already there though?
Posted By: MikeChat

Re: some general questions - 30/11/05 09:09 PM

If you mean your message post here on the board, you just look at the frame for the message You posted and click the edit button, there is a time limit to being able to edit your posts however.
Posted By: Kelder

Re: some general questions - 30/11/05 11:47 PM

It's best if you surround tests with (), as that makes it easier to parse for mIRC and for humans too. It gets more important with more tests and especially when mixing || and &&.

if ((condition1 == somevalue) && (condition2 == somevalue)) {
...
}
Posted By: schaefer31

Re: some general questions - 01/12/05 03:45 AM

I'm very much aware of that, but for what he was asking, the extra () aren't necessary so I didn't include them.
© 2022 mIRC Discussion Forums