Mirage Source
Error With Layers - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Error With Layers (/showthread.php?tid=2061)



Error With Layers - Doomy - 05-09-2008

Ive decided to use ms3 again
because the people who can help me are more familar with it
and well i am not a good scripter so i need their help

so i am doing the layers with ms3 now can someone help me

Every time i try to do the layers in the server with the layers tutorial i always get this error
( this is the tutorial viewtopic.php?f=75&t=1090 )

Variable Not Defined Error Message
Then it highlights

For y = 0 To MAX_MAPY
For x = 0 To MAX_MAPX
With Map.Tile(x, y)
Packet = Packet & .Ground & SEP_CHAR & .Mask & SEP_CHAR & .Anim & SEP_CHAR & .Mask2 & SEP_CHAR & .M2Anim & SEP_CHAR & .Fringe & SEP_CHAR & .FAnim & SEP_CHAR & .Fringe2 & SEP_CHAR & .F2Anim & SEP_CHAR & .Type & SEP_CHAR & .Data1 & SEP_CHAR & .Data2 & SEP_CHAR & .Data3 & SEP_CHAR
End With
Next x
Next y

Also this is when editing the server part


Re: Error With Layers - Rian - 05-09-2008

then define it. in this case, our variable "packet" happens to be a string.

Code:
Dim Packet As String



Re: Error With Layers - Matt - 05-09-2008

If you're using the tutorial on here and using ms4, you won't get anywhere. As the layer code is different.

If you're using ms303, then the tutorial will work fine.

If it doesn't, I suggest you either a) Learn why or b) quit programming.


Re: Error With Layers - Kousaten - 05-09-2008

You just explained why the tut won't work on MS4. Big Grin

But yeah, define the variable like Sonire said. If you're going through the tuts, I'd recommend using an older version that they're already compatible with...

...or just learning how they work and going from there. Idea


Re: Error With Layers - Matt - 05-09-2008

Kousaten Wrote:You just explained why the tut won't work on MS4. Big Grin

But yeah, define the variable like Sonire said. If you're going through the tuts, I'd recommend using an older version that they're already compatible with...

...or just learning how they work and going from there. Idea

I'm aware.