PDA

View Full Version : How do you use screen variables in Zscript, not ZASM?



beefster09
01-20-2007, 01:43 AM
Yeahhh!!! I thought that D[x] did screen variables. Is it like SD[x]?
I get the error: Syntax error, unexpected LBracket, expecting semicolon or or, on token [

Here is the faulty line of code:
D[0] = 0; // comment

What did I do wrong?

Saffith
01-20-2007, 01:58 AM
They're members of Screen. Access them with Screen->D[n].

beefster09
01-20-2007, 11:29 AM
Oops. Forgot about the pointer.