server talk headache

Blitz3D Forums/Blitz3D Programming/server talk headache

Not sure if this will fix your problem, but it seems to me your usage of Gosub is wrong. The app starts at line 1 then executes line by line, then reaches the first Return without to know a return adress because it didn't GOSUB yet.

You may fix this like this:

Replace
Gosub label
by
label()

and

.label
by
function label()

and

Return
by
Return
End Function


Now you need to know, all variables that are used inside a function are locals, this means the function will forget their values as soon as the program returns from a function call. If you declare the variables to be global, they will not be locals and the functions will "remember" their value, as you meant to use them. eg.

Global angmonserver

Oh and BTW, it's a bad idea to use the same name for valiables and labels or function names.

The FOrum tags for code is [ code ] [ /code ], without the spaces. or use [ codebox ] for longer sources.