Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Live/Visual Stats
#6
Leighland Wrote:That would work. The only thing is the stats will only be updated whenever you do something that calls the SendStats procedure on the server. So on the server, on frmServer, make a new timer

That's as bad as sending the HP, MP and SP every ten seconds!!!!

Using timers for something like that is really bad programming.

All you need to do is go to frmTraining, press the 'train' button, find out what packet is sent.

Go serverside, find that packet in handledata, then at the bottom add:

Code:
Call SendPlayerStats(index)

Then make a new sub in modServerTCP:

Code:
Public Sub SendPlayerStats(byval Index as long)
dim packet as string

Packet = "updatedstats" & SEP_CHAR & "have what ever stats you want here" & SEP_CHAR & END_CHAR
Call SendDataTo(index, packet)
end sub

Then in clientside modHandleData, add a new packet called "updatedstats" and have all your labels updated with the values recieved in the packet Smile

~Kite

(I did that all off the top of my head, so I didn't write down all the stat's etc.)
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)