Page 1 of 1

Script Help?

Posted: June 5th, 2008, 3:04 pm
by Lebo
I want to know how to make a script that counts how many times it has been used.
Example: Lebo pokes $$1 with an extra long bagguette [I've poked <NumberCounter> People with this here snack!!]
Help appreciated.
Plus if its needed i use mIRC.
Thanks again, Lebo. :)

Re: Script Help?

Posted: June 5th, 2008, 7:18 pm
by Drkpwn3r

Code: Select all

if ( %somenumber == $null ) {
  %somenumber = 0
}
else {
  inc %somenumber
}
Replace %somenumber with your desired variable name and you're set, also use the same variable at "[I've poked " $+ %somenumber $+ " people with this here snack!!]" (pretty sure that's right) if you wish to display the value in a message.
Just make sure no scripts you have running use the variable you're going to be using, otherwise it may not turn out too pretty for either your script or the other one. ;)

Re: Script Help?

Posted: June 6th, 2008, 8:47 am
by Lebo
Thanks mate :D