PDA

View Full Version : GSC bug.



Zandis
16-05-2004, 04:48 PM
Please, someone explain me where is my bug?

[PATCH]
creator = Tester
description = Test

[SCRIPT]
dlg: value = Enter value
cmp: value = 10
beq: 2
prt: Incorrect
skp: 1
prt: Correct

Thanx.

NokDoc
16-05-2004, 05:30 PM
Hi,

Cool!

I think there is no bug in Ur demo?

Ur question did help me in showing this dlg thing, thanks. ;)

dlg: value = Enter value
cmp: value = 0x8210
beq: 0x06
prt: No 8210
cmp: value = 0x3310
beq: 0x05
prt: No 3310
prt: No Valid Type!
skp: 0x3
prt: Valid Type 8210!
skp: 1
prt: Valid Type 3310!

prt: Continue...

NokDoc

danwood76
16-05-2004, 05:31 PM
Zandis,
where is the enter value pointing at?

and where is your code, etc?

regards,
Danny

Zandis
16-05-2004, 10:26 PM
Dan, there is no code. I only write that to learn gsc. I wanted to learn how to compare values.
My script should do following:
If I type "10" in dialog it shows "Correct" else "Incorrect". Pretty simple :)

mestrini
16-05-2004, 11:42 PM
Hi,

Cool!

I think there is no bug in Ur demo?

Ur question did help me in showing this dlg thing, thanks. ;)

dlg: value = Enter value
cmp: value = 0x8210
beq: 0x06
prt: No 8210
cmp: value = 0x3310
beq: 0x05
prt: No 3310
prt: No Valid Type!
skp: 0x3
prt: Valid Type 8210!
skp: 1
prt: Valid Type 3310!

prt: Continue...

NokDoc

I understand the main idea (and did one myself :D ) but can't see why the 0x before the phone type :-?

care to explain?

thanks

NokDoc
17-05-2004, 12:28 AM
Hi,

I'm not sure if it's required.

But I think it's the way a value is being seen as hexidecimal and not as decimal.

Mr. Z, cool demo.

I must admit I'm quite a gsc newbie, but U see U train me good.

If I knew this last week, I think I could have used it in the nHexR script.

That's why I like nFree, there's always things to learn from eachother...

NokDoc

danwood76
18-05-2004, 12:34 AM
Dan, there is no code. I only write that to learn gsc. I wanted to learn how to compare values.
My script should do following:
If I type "10" in dialog it shows "Correct" else "Incorrect". Pretty simple :)

sorry my brain was somewhere else :)

nice work zandis
you seemed to pick that up faster than me ;)

regards,
Danny