mIRC Homepage
Posted By: dude22072 add 1 to a variable? - 18/05/14 03:29 AM
currently i tried:
Code:
var %length $readini(quotes.ini, $$3, length)
    var %newlength = %length +1
    msg # %newlength

but what just messages "1 +1" in the chat.
the ini is setup like
Code:
[zackattack9909]
length=2
1="maybe the scripts are broken when I accidentially the whole thing last night?" -May 17th 2014 @ 18:31
2=test

[dude22072]
length=1
1=testaroo

and i wanna add 1 to the length when a quote is added so because my $rand uses "length" for the max value.
Posted By: Nillen Re: add 1 to a variable? - 18/05/14 03:37 AM
$calc(%length + 1)
Posted By: dude22072 Re: add 1 to a variable? - 18/05/14 03:42 AM
Thanks so much, you've been an awesome help tonight.
© mIRC Discussion Forums