Author Topic: random with ontext  (Read 2735 times)

newsundown

  • Newbie
  • *
  • Posts: 3
random with ontext
« on: January 30, 2008, 08:57:24 AM »
hi..i want to generate a random joke-script. my problem is the function $rnd(number,number)

need help with that script

on *:TEXT:!witz:#hierher:
$rnd(1,10)
{
if $rnd =1
{
/describe $chan witz1}
}

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: random with ontext
« Reply #1 on: January 31, 2008, 07:58:01 PM »
You have to assign a variable to $rnd(1,10). Like '$i = $rnd(1,10)'
The IceChat God