communication problem on serverside Created 17 years ago2007-05-04 09:21:40 UTC by suei suei

Created 17 years ago2007-05-04 09:21:40 UTC by suei suei

Posted 17 years ago2007-05-04 09:21:40 UTC Post #220957
i wrote 2 new classes and added them to the serverside. The problem is that even thoug i included the .h file in both classes, the two classes can not call each others methods.

have anyone encoutered the same problem? if yes could you state a solution please..
Posted 17 years ago2007-05-06 00:26:02 UTC Post #221117
Are you getting a compiler error or is your code not working in game?

Also, paste the source/header files here and give the link.
Posted 17 years ago2007-05-08 03:40:01 UTC Post #221378
i figured out a theory of sending variables from server-side to client-side.. but realizing the theory is a bit complicated. its about creating a "sender" on the server and a "reciever" on the client and thereby server can send info to client.

Any1 have idea of doing this?
Posted 17 years ago2007-05-08 03:44:35 UTC Post #221379
oh by the way.. to answer your question.. yes i got a compiler error when trying to access methods in gamemovement.cpp from a class i created MyClass.cpp. Bot classes on serverside. The error message i got was: "illegal call to non-static member function..."
Posted 17 years ago2007-05-08 08:28:23 UTC Post #221389
i figured out a theory of sending variables from server-side to client-side..
Unless there's some special reason, I don't see why you should be doing this. Valve already has a system for exchanging information between the two dlls that works perfectly fine.

Also, I can't do much to help you with your errors without seeing the code.
You must be logged in to post a response.