20.05.2013, 18:28
Quote:
Nice job, but i've noticed something, almost in every native you send the command then receive the answer,
so if this plugin gets connected with an external server, it'll lag the local one, since the recv function hangs the server until an answer is received, i know that its only designed to work with local servers so there is no such a problem my suggestion is that if you run the Receive function on a seperated thread, and everytime a response is received you check for errors and use a callback to pass it to scripts, something like "TSC_OnError" maybe ? apart that good work |
I mean..
if you use too fast 2 times the function TSC_GetClientUIDByName(name[]);
the callback will be called twice, and you can't know wich UID is for each name