[Edit]
[/Edit]
Hi there,
i have a confused issue.
here my code:
scr_revice_msg()
scr_server_send_data()
here we go:
i run with the debuger and this heppend every time
after line "scr_get_states(player, 1);" my global.exp has a value of 406. It was before at 206. in the next step it have the pointed 406 and go to "scr_server_send_data" with (1, targetsocket, 7, global.exp). but in the next step in "scr_server_send_data" argument3 got the value of 206.
debug global variable says global.exp is 406 in all this 3-4 steps. i dont get it why argument3 get this old value.
i have around 20 global variable and all of them working correct.
i think this is be a issue with a pointer or smt like that but i cant see it.
is it possible that gm alrady have a variable called exp or global.exp?
Thx to [USER=50928]saffeine[/USER] to confirm it.
" the exp() function has an index of 206 ( if you type a function name without the parenthesis it returns the index rather than calling it "
Hi there,
i have a confused issue.
here my code:
scr_revice_msg()
GML:
...
case 7:
var player = buffer_read(buffer, buffer_u16);
scr_get_states(player, 1);
scr_server_send_data(1, targetsocket, 7, global.exp);
break;
case 8:
...
GML:
var send_typ = argument0,
targetsocket = argument1,
sending = argument2,
num_u16 = argument3,
num_u32 = argument4,
str = argument5,
buffer = buffer_create(1024, buffer_grow, 1);
...
case 1:
show_debug_message("senden 1");
buffer_seek(buffer, buffer_seek_start, 0);
buffer_write(buffer, buffer_u8, sending);
buffer_write(buffer, buffer_u16, num_u16);
network_send_raw(targetsocket, buffer, buffer_tell(buffer));
break;
case 2:
...
i run with the debuger and this heppend every time
after line "scr_get_states(player, 1);" my global.exp has a value of 406. It was before at 206. in the next step it have the pointed 406 and go to "scr_server_send_data" with (1, targetsocket, 7, global.exp). but in the next step in "scr_server_send_data" argument3 got the value of 206.
debug global variable says global.exp is 406 in all this 3-4 steps. i dont get it why argument3 get this old value.
i have around 20 global variable and all of them working correct.
i think this is be a issue with a pointer or smt like that but i cant see it.
Last edited: