Hey,
i'm having trouble sending a whole struct with send_var(_player). it contains a STRING* pointer wich is losing its value.
the struct kinda looks like this:
typedef struct {
var id;
STRING* name;
var x;
var y;
var z;
} PL;
PL _player;
but by sending every element seperately like:
send_string(_player.name);
send_var(_player.id);
//...
the engine cashes. It only works for the first element of the struct.
can anybody help me?