Skip to content
MSN

Problem with variables

A TG007 community discussion started by bonTy.

Discussion 13 posts
Page 1 of 1
Open
Topic #3888 · 13 published posts · 1,720 views

Hey guys,

 

I have a small problem which is from time to time I need to clear all variables so the codes work

I go to my variables everything is okay

but some codes stops working unless I clear all variables //unsetall

any ideas what causing this or wat to do to stop it ?

Not sure what would cause that, but what you could do is at the start of every piece of coding that deals with variables, you could clear the variable first.

Do you have any on a timer?

Eg: set -u60 %myvar test

If so then /unsetall should clear the timers aswell, whereas manually deleting them might not.

 

Cleric,

Maybe you didn't get me , my problem that some of my codes stops working from time to time , and I can't make it work unless I clear the vars so when I clear the vars witth //unsetall everything work prefectly again

Those codes use vars..

so unset the vars that stop the code working , when you start the script, that way the code will allways work

 

My code does NOT have bugs. It just develops random features.

Hi Ozzy,

I don't know which code cause the problems ..

shall I unsetall all the codes on start

and then reset them again ?

Coze it has to be set manualy like

script kicker I have to set it on and then I set which checks I want

and so

This is the way my vars

%msnr.10

%msnr.9 msn -c G_Egypt

%msnr.8 msn -c G_Lebanons

%msnr.7 msn -c G_Palestines

%msnr.6 msn -c G_Jordanonmsn

%msnr.5 msn -c G_Arabromanceonmsn

%msnr.4 msn -c G_Allarabonmsn

%msnr.3 msn -c G_Syriaonmsn

%msnr.2 msn -c G_Arabiafriends

%msnr.1 msn -c G_Biohazardcds

%olddnick adorable_lunula

%tpwait 20

%scriptkickfloodprot on

%dowhois on

%dovincula on

%doubleping off

%doubletime off

%dotime1 off

%doping1 off

%doversion on

%dofinger off

%dodtae off

%floodthreat skip

%kick.count 7

%color.op 9

%color.voice 3

%color.me 8

%emotkick on

%emotcount 35

%emotmsg Don't do that again!

%emotban 10

%rp.%#G_Egypt.Sami_SG 1.4121258240

%rp.%#G_Lebanons.â™ھأ‘أ³ر“thiâ™ھ 1.3546377472

%rp.%#G_Egypt.girl_of_arts 1.4282138880

%rp.%#G_Egypt.vخ­د„ 1.1781959424

%rp.%#G_ArabRomanceOnMsn.PonderousTiger007 1.2621327616

%kickcount.*!*4111934AE@GateKeeperPassport 1

%rp.%#G_Lebanons.zaذ·أںiرڈaâ–ھâ–ھe₤â–ھâ–ھذ؛ر›aأںiرڈaâ„¢ 1.3988548864

%rp.%#G_Lebanons.Soخ¶diرâ€رڈâ„¢ 1.1819241472

%rp.%#G_jordanonmsn.elgasoos 1.2081906688

%rp.%#G_jordanonmsn.ط§ظ„ظ…ط³ط§ط§ط§ظپط±ط§ظ„ظ…ظپطµظˆظˆظ…1 1.1216973312

%rp.%#G_Lebanons.â„¢خ©أ ذ¼ؤ›ؤ›رڈخ©â„¢ 1.2022960128

%rp.%#G_AllArabOnMSN.إ‍tؤ…آ®1 1.2080401920

%rp.%#G_AllArabOnMSN._BasseM_ 1.1285769984

%rp.%#G_jordanonmsn.ط§ظÆ’ط§ط¯ظٹظ…ظٹط©_ظ…ط¨ط§ط±ظÆ’_ظ„ظ„ط§ظ…ظ†2005 1.2332717312

%rp.%#G_Egypt.Sabeel_ط³ط¨ظٹظ„ 1.2728283136

%rp.%#G_ArabRomanceOnMsn.harmal1 1.6842624

%rp.%#G_Lebanons.Kimoo20031 1.3412341504

%rp.%#G_jordanonmsn.ط£طھط­ط¯ظ‰_ط§ظ„ط¹ط§ظ„ظ… 1.1501549568

%rp.%#G_Egypt.Omega2258 1.2550013952

%rp.%#G_Lebanons.Angelkati4 1.888636416

%rp.%#G_Egypt.ط§ظ„ظ‡ط¯ظٹ_ظ…ظ†_ط§ظ„ظ„ظ‡1 1.2079713280

%rp.%#G_Lebanons.آ»خ·خ±خ·خ±آ« 1.1751462656

%rp.%#G_Lebanons.ئ’رڈخ¯ذµذ؟do 1.979249408

%rp.%#G_Lebanons.آ¬آ¨آ¯آ«â„¢آ¤أ‘ذâ€ذâ„¢ر„آ§Hآ¤â„¢آ»آ¯آ¨آ¬ 1.236437248

%rp.%#G_Lebanons.adorable_lunula 1.1396346112

And the codes stops is the emoticon kicker and the script kicker and the nick list color

so you mean I unset those vars on start and then it will work alone without I set them ?

Edited Jun 23, 2005 1:55 PM by bonTy

why not use an ini file? no risk of other vars clashing or accidentally getting changed

"the important thing was, that i had an onion on my belt, which was the style at the time"

To be honest I didn't work with ini b4 so I won't know how to change my coding to work with ini

 

might be worth learning if you don't want this problem with the vars, the help file has all you need,

 

also it might be worth using groups for your on/off variables

"the important thing was, that i had an onion on my belt, which was the style at the time"

I will give it a try thanks alot guys

 

Its hard for us to know which bit is causing it , without seeing the whole script

My code does NOT have bugs. It just develops random features.

Here's a couple of aliases I regularly use with ini files. They might come in handy for you.

alias wini { writeini data.ini $1 $2 $3- }
alias rini { return $readini(data.ini,$1,$2) }

Usage:

wini mirc nicknames tom,bob,mike

(data.ini)
[mirc]
nicknames=tom,bob,mike

$rini(mirc,nicknames) = tom,bob,mike

 

Thanks alot mate