@fastlane69 I'm using A7, so ya I'm using lite-c.

@JCL, okay well in that case I must be doing something horrificly wrong. Here is my full test script:

Code:

#include <acknex.h> // Pure Mode
#include <default.c>

PANEL* pnlTesting =
{
flags = VISIBLE;
digits(300,300,"mydata.x: %015.5f",*,1,mydata.x);
}

typedef struct MYDATA
{
//int x;
var x;
char c[20];
} MYDATA;
MYDATA mydata;

//receiving data
function on_client_event(void* buffer)
{
// if(event_type == EVENT_DATA)
memcpy(mydata,buffer,sizeof(MYDATA));
}

function main()
{
level_load("testing.wmb");
wait(-1);
screen_color.blue = 255;
#ifdef server //if we defined this game as a server
while(connection & 0) {wait(1);} // wait until we have a connection
#endif

#ifdef client //if we defined this game as a client
while(connection & 0) {wait(1);} // wait until we have a connection
#endif

// on_server = server_event;
on_client = on_client_event;

player = ent_create("testing.mdl",vector(200,0,0),NULL);

wait(-1);
while(1)
{
wait(1);
if(key_q == 1 && connection == 3)
{
while(key_q == 1){wait(1);}
beep();
// sending data
mydata.x = 1234;
strcpy(mydata.c,"Test!");
send_data_to(NULL,mydata,sizeof(MYDATA));
}

if(key_w && connection == 3)
{
while(key_w == 1){wait(1);}
beep();
mydata.x = 54321;
send_var_to(NULL,mydata.x);

}
}
}



Here is a downloadable link of the script that's ready to go:
http://www.filesend.net/download.php?f=02370cdad5cb6747cc308c432c26bb3d

send_var works fine when I change mydata.x to var. No matter what, send_data wont work. It doesn't even effect the bandwith


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.