Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error With Layers
#1
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
Reply
#2
then define it. in this case, our variable "packet" happens to be a string.

Code:
Dim Packet As String
Reply
#3
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.
Reply
#4
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
Reply
#5
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)