Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sign Errors
#1
did you send the sign data before sending the request to open the index list?

i.e. change the sub which sends the sign data list to also send a list of names... easy code to do, i'd paste it but i ain't re-installed VB6 yet... lol
Reply
#2
I think what he meant, was are you passing the sign name off to the editor when you place the name in the list box. I too have this issue with signs, and I have yet to figure it out. Been awhile since I tried too though.
Reply
#3
tell you what guys, once i re-install VB6, I'll post a tutorial fix for signs to make them show in the list

fair? Tongue
Reply
#4
Is the name been sent in the packet?
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#5
...


Did you remember to make a 'Type SignRec'

For lstIndex to draw the Sign.Name from?





..Scratch that, If you said it loads to txtName just fine.
Reply
#6
Rezeyu Wrote:...


Did you remember to make a 'Type SignRec'

For lstIndex to draw the Sign.Name from?





..Scratch that, If you said it loads to txtName just fine.

Ya I think thats his problem, don't forget to add

Code:
Public Sign() As SignRec
and
ReDim Sign(1 To MAX_SIGNS) As SignRec

in modClientTCP

and the actual SignRec in the middle of modTypes Wink.
Reply
#7
No, that can't be it, because Magnus said that it DOES display the name of the sign in the editor, which should be txtName...


And just like all editors I'm assuming that his sign Editor's txtName draws from Sign.Name..

Which means he already has the SignRec


Unless txtName is loaded some other way for the sign tut, in which case maybe I was right in the first place.
Reply
#8
Rezeyu Wrote:No, that can't be it, because Magnus said that it DOES display the name of the sign in the editor, which should be txtName...


And just like all editors I'm assuming that his sign Editor's txtName draws from Sign.Name..

Which means he already has the SignRec


Unless txtName is loaded some other way for the sign tut, in which case maybe I was right in the first place.

yes but when you select the sign from the index list it sends data to the server to get the info for that sign


this won't be perfectly right but when you call for sign editor to open, add this code before the data is sent saying the sign editor can be opened:

Server Side:
Code:
dim Sn as long
dim SnPacket as string
SnPacket = "signnames"
for Sn = 1 to MAX_SIGNS
     SnPacket = SnPacket & SEP_CHAR & trim(sign(Sn).name)
next Sn
SnPacket = SnPacket & SEP_CHAR & END_CHAR
call senddatato(index, SnPacket)

Client Side (clientTCP, forgotten the sub name, the data one):
Code:
if lcase(parse(0)) = "signnames" then
     dim Sn as long
     for Sn = 1 to MAX_SIGNS
          sign(Sn).name = trim(parse(Sn))
     next Sn
     exit sub
end if


That will add all of the sign names to the client which is going to edit them before you get the index list, then it can show the names ON the list

if there's any bugs, please tell me, cheers Smile
Reply
#9
Magnus Wrote:Thanks. that worked and now the sign name displays. Smile

yehhhh i ruleeee Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)