Quote:
Originally Posted by DarthMan
I did not know that void must be written as pointer on the function type. Guess you always learn something new.
|
It doesn't. I was talking about argument type, not return type.
PHP Code:
void EXT_FUNC SV_RejectConnection(netadr_t *adr, char *fmt, ...)
void is the return type, meaning function doesn't return anything. We don't add that in the file.
pointer is for "netadr_t *adr"
char * is for "char *fmt".
Note that this function is actually variadic(meaning it can have more than 2 arguments - notice the ...). I don't know how it will behave when called for such message, it may crash, it may not, I'm not sure(for example this call:
https://github.com/dreamstalker/rehl...main.cpp#L1770)
__________________