I'm new at this and i cant understand why this does not work.
it works until ($nick rolled...),and "if" doesnt work,can you please help me?
on *:text:!game*:#: {
if ($nick isvoice # || $nick isreg #) { msg $chan you cant do this | return }
if (!$2) { notice $nick Invalid format Use: !game nick1 cash | halt }
set %game $1 $2 $3
msg $chan [game] $2 bet on game @ $nick - cash: $3
:loop
msg $chan [game] $nick rolled $r(1,100) on the dice.
if ($r < 58) { msg $chan $2 lost $3 }
elseif ($r > 58) { msg $chan $2 won $3 }
else { msg $chan reroll | goto loop }
}
Last edited by puxekas; 16/07/12 08:33 PM.