Mail Archives: djgpp/1998/07/06/02:30:20
From: | "Oliver Batchelor" <batch AT netaccess DOT co DOT nz>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Dat files... Undeclared variables ??? Why ?? (full source attached (v.small > 0.5k))
|
Date: | 6 Jul 1998 06:27:56 GMT
|
Organization: | The World's Usenet -- http://www.Supernews.com
|
Lines: | 72
|
Message-ID: | <01bda8a6$aaf28560$bf0562cb@dialup.voyager.co.nz>
|
NNTP-Posting-Host: | 203.98.5.191
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello,
I am making an editor for a game Im making and I started putting everything
into dat files, but I have one problem.
I have loaded the dat file correctly.
It won't compile the following because it says there is an Undeclared
variable when the variable is exacly the same as the name inside the dat
file and I am doing exacly the same way as in example 12 and that works !!!
(the full code is attached 1kb small)
The pictures in the dat file are 16 bit compiled sprites (tiles) and the
mouse image is a 16 bit bitmap. (It worked before I added dat files)
draw_compiled_sprite(active_page, tiledata[LAND1_TGA].dat, x,y);
^
and
draw_sprite(active_page, tiledata[MOUSE_BMP].dat, x,y);
^
|
IT says undefined variable when
the MOUSE_BMP and LAND_TGA
are the same as the name in the dat file !
If that is not enough the full thing is attached ! > 0.5k
thanks !!,
Oliver Batchelor
begin 600 Good2.c
M#0H-"@T*#0HC:6YC;'5D92 \<W1D:6\N:#X-"B-I;F-L=61E(#QS=&1L:6(N
M:#X-"B-I;F-L=61E(#QA=61I;RYH/@T*(VEN8VQU9&4@/'-T<FEN9RYH/@T*
M(VEN8VQU9&4@/&-O;FEO+F@^#0HC:6YC;'5D92 B86QL96=R;RYH(@T*#0H@
M("!"251-05 @*G!A9V4Q+" J<&%G93([#0H@("!"251-05 @*F%C=&EV95]P
M86=E.PT*(" @8VAA<B!M<V=;-3!=.PT*(" @:6YT('@L>2QC+'-C<F]L>"QS
M8W)O;'D[#0H@("!"651%(&UA<%LQ,#!=6S$P,%TL('1O<&%I;G0[#0H@("!$
M051!1DE,12 J=&EL961A=&$[#0H-"FEN="!M86EN*"D-"GL-"@T*(" @('1O
M<&%I;G0],S [#0H-"@T*(" @(&%L;&5G<F]?:6YI="@I.PT*(" @(&EN<W1A
M;&Q?=&EM97(H*3L-"B @("!I;G-T86QL7VUO=7-E*"D[#0H@(" -"@T*#0H@
M(" @<V5T7V-O;&]R7V1E<'1H*#$V*3L-"B @("!S971?9V9X7VUO9&4H1T98
M7T%55$]$151%0U0L(#,R,"P@,C0P+" P+" T.# I.PT*#0H-"B @("!P86=E
M,2 ](&-R96%T95]S=6)?8FET;6%P*'-C<F5E;BP@,"P@,"P AT 4T-2145 DOT 7U<L
M(%-#4D5%3E](*3L-"B @("!P86=E,B ](&-R96%T95]S=6)?8FET;6%P*'-C
M<F5E;BP@,"P AT 4T-2145 DOT 7T@L(%-#4D5%3E]7+"!30U)%14Y?2"D[#0H@(" @
M86-T:79E7W!A9V4@/2!P86=E,CL-"@T*#0H@(" @=&EL961A=&$@/2!L;V%D
M7V1A=&%F:6QE*")T:6QE+F1A="(I.PT*(" @("!I9B H(71I;&5D871A*2![
M#0H@(" @("!A;&QE9W)O7V5X:70H*3L-"B @(" @('!R:6YT9B AT B17)R;W(@
M;&]A9&EN9R!T:6QE+F1A="%<;EQN(BD[#0H@(" @("!R971U<FX@,3L-"B @
M('T-"@T*#0H@(" @(&9O<B H>#TP.R!X/#$P,#L@>"LK*2![#0H@(" @(&9O
M<B H>3TP.R!Y/#$P,#L@>2LK*2![#0H@(" @(&UA<%MX75MY73TQ.PT*(" @
M("!]?0T*#0H-"B @("!W:&EL92 H(6MB:&ET*"DI#0H@(" @>PT*(" @("!C
M;&5A<BAA8W1I=F5?<&%G92D[#0H-"@T*#0H-"B @(" @(&9O<B H>#TP*W-C
M<F]L>#L@>#PQ,BMS8W)O;'@[('@K*RD@>PT*(" @(" @9F]R("AY/3 K<V-R
M;VQY.R!Y/#$R*W-C<F]L>3L@>2LK*2![#0H-"@T*(" @(" @9')A=U]C;VUP
M:6QE9%]S<')I=&4H86-T:79E7W!A9V4L('1I;&5D871A6U1)3$4Q7U1'05TN
M9&%T+"!X+"!Y("D[#0H@(" @("!]?0T*#0H@(" @("!D<F%W7W-P<FET92AA
M8W1I=F5?<&%G92P@=&EL961A=&%;34]54T5?0DU072YD870L(&UO=7-E7W AT L
M(&UO=7-E7WDI.PT*#0H-"B @(" @(&EF("AM;W5S95]B("8@,2D@>PT*(" @
M(" @(" @:68H;6]U<V5?>" \/2 R-# I('L-"B @(" @(" @(" @(" @("!I
M9BAM;W5S95]Y(#P](#(T,"D@>PT*#0H@(" @(" @(" @(" @('@];6]U<V5?
M>" O(#(P*W-C<F]L>#L-"B @(" @(" @(" @(" @>3UM;W5S95]Y("\@,C K
M<V-R;VQY.PT*#0H@(" @(" @(" @(" @(&UA<%MX75MY73UT;W!A:6YT.PT*
M(" @(" @(" @(" @("!]#0H@(" @(" @("!]#0H@(" @('T-"@T*(" @("!I
M9B H86-T:79E7W!A9V4@/3T@<&%G93$I('L-"@D@<V-R;VQL7W-C<F5E;B AT P
M+" P*3L-"@D AT 86-T:79E7W!A9V4@/2!P86=E,CL-"B @(" @('T-"B @(" @
M(&5L<V4@>PT*"2!S8W)O;&Q?<V-R965N*# L(%-#4D5%3E](*3L-"@D AT 86-T
M:79E7W!A9V4@/2!P86=E,3L-"B @(" @('T-"B @('T-"@T*(" @9&5S=')O
M>5]B:71M87 H<&%G93$I.PT*(" @9&5S=')O>5]B:71M87 H<&%G93(I.PT*
M#0H@("!U;FQO861?9&%T869I;&4H=&EL961A=&$I.PT*#0H-"B @(')E='5R
*;B P.PT*('T-"F1?
`
end
- Raw text -