A question about TNL basic sample
by Beyondlwm · in Torque Game Engine · 08/13/2007 (8:50 am) · 1 replies
TNL_IMPLEMENT_RPC(SimpleEventConnection, rpcMessageClientToServer, (const char *messageString),
NetClassGroupGameMask, RPCGuaranteedOrdered, RPCDirClientToServer, 0)
{
// display the message the client sent
printf("Got message from client: %s\n", messageString);
// send a hello world back to the client.
rpcMessageServerToClient("Hello, World!");
}
it says that the function lost a parameter,but I don't know where the mistake is.
I followed the sample on te TNL web
NetClassGroupGameMask, RPCGuaranteedOrdered, RPCDirClientToServer, 0)
{
// display the message the client sent
printf("Got message from client: %s\n", messageString);
// send a hello world back to the client.
rpcMessageServerToClient("Hello, World!");
}
it says that the function lost a parameter,but I don't know where the mistake is.
I followed the sample on te TNL web
Torque Owner Kirby Zhang
TNL_IMPLEMENT_RPC(SimpleEventConnection, rpcMessageClientToServer, (const char *messageString),
(messageString), NetClassGroupGameMask, RPCGuaranteedOrdered, RPCDirClientToServer, 0)
{ ... }