Wow thanks a lot !!
It works great !!!
Now I have 2 questions about this script !
First Question :If I wanna change the rules thingy like that :
[rules]
book=0 0
ball=5 50
DVD=5 150
Is the "while" loop still working ?
while ($hget(gift.rules,%ruleNo) != $null)
Is %ruleNo (=1,2,3,4...) refering to the "1=" or refering to the first line then second line and so on... ?
Second question :Is it possible to "upgrade" the script like that :
giftrules.ini
[rules_fr]
book=0 0
ball=5 50
DVD=5 150
[rules_uk]
book=0 0
ball=4 40
DVD=6 250
[rules_de]
book=0 0
ball=3 32
DVD=7 250
Then people would be added like that : /addname Name1.country <rating> <ranking>
ex: /addname georges.eastwood.fr 5.3 156
And when the check comes script would act like this :
if fr isin <name_checked> then
compares name rating and ranking to [rules_fr] and give result
if uk isin <name_checked> then
compares name rating and ranking to [rules_uk] and give result
Sorry for not giving this idea first but I didn't know the script will progress that fast thanks to you
Have a nice day and thank you again.
Conscience.