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
_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org