Mirage Source
Subscript out of range? - 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: Subscript out of range? (/showthread.php?tid=2528)



Subscript out of range? - timster0 - 25-01-2009

I get RTE 9 and it highlights this line in Sub SendChars:

Code:
Packet = Packet & SEP_CHAR & Trim$(Player(index).Char(i).Name) & SEP_CHAR & Trim$(Class(Player(index).Char(i).Class).Name) & SEP_CHAR & Player(index).Char(i).Level & SEP_CHAR & Trim$(Player(index).Char(i).Guild) & SEP_CHAR & Player(index).Char(i).Guildaccess



Re: Subscript out of range? - Matt - 25-01-2009

Delete your accounts, start fresh.


Re: Subscript out of range? - timster0 - 26-01-2009

OK, tried it and now I get "type mismatch"

It highlights:
Code:
Level = CLng(Parse(n + 2))
in the Handleallchars sub client-side.


Re: Subscript out of range? - Tony - 26-01-2009

Level = CLng(Parse(n + 2))

make it n + 3 and then next line do the same ( n + 4) etc.


Re: Subscript out of range? - timster0 - 26-01-2009

Actually, I forgot an & END_CHAR server side, but now it highlights the

Code:
Level = CLng(Parse(n + 2))

and I get RTE 9 again. I deleted all the accounts as well. I get this when I try to login.


Re: Subscript out of range? - timster0 - 27-01-2009

I've tried everything I can think of, any help?


Re: Subscript out of range? - timster0 - 27-01-2009

n00b question but... How would you do that XD.


Re: Subscript out of range? - timster0 - 27-01-2009

Juct Checking but, you said on the other topic that this will let it compile, but It wont work right.


Re: Subscript out of range? - timster0 - 27-01-2009

Lol, I want it to work AND compile.


Re: Subscript out of range? - Tony - 27-01-2009

Way to ignore my post and try it. Jesus.


Re: Subscript out of range? - timster0 - 28-01-2009

Lol, sorry. It didn't work.

EDIT:Found the Problem, it was in the SendChars sub.