View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-22-2018 , 14:13   Re: Orpheu Signatures Collection
Reply With Quote #66

Quote:
Originally Posted by DarthMan View Post
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 *adrchar *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)
__________________

Last edited by HamletEagle; 08-22-2018 at 14:17.
HamletEagle is online now