Quote:
Originally Posted by Simon Logic
I don't get how one function can return true or timeout. Or will timeout be greater than 0, and true is less then 0?
|
As far as i know, TRUE is a boolean value and its integer value is -1, so you will basicly know if the value is greater then 0 you have a timeout, otherwise its true.
Quote:
Originally Posted by Simon Logic
Your source code does not cover/use this feature.
|
It's intended to keep things simple
Quote:
Originally Posted by Simon Logic
Also i don't understand wether socket_change() wait for timeout interval (is it a sync function?) until it gets some data or it's non sync function and you must call it in loop until it returns true or timeout interval which was passed as a second argument (_timeout)?
|
Im not sure myself, i'd better leave it for someone of the amx mod x developement team to fill in that one
__________________