Ok, e.g..
alias blah {
var %x 1
while (%x <= 20) {
$dllcall(blah.dll, $null, function, datahere)
inc %x
}
}
}
So it calls it multi threaded 20 times...
int WINAPI function(HWND, HWND, char *data, char *parms, BOOL, BOOL) {
//connect socket
//blah blah
// get socket data blah blah
char toSend[256];
strcpy(toSend, "Socket data: ");
strcat(toSend, dataa);
sendmirc(toSend);
}
when i do /blah it echos 20 times - perfect..
but if i do it again 1/2 secs later, it doesnt echo anything, i.e sendmirc doesnt do anything
if i restart mirc, then it works fine - echos normal!
In the 'function code' i tested it and when i run /blah 1/2 secs later it does everything in the 'function' except fails on the 'sendmirc'