A small test code using engine functions:
Code:
public pfn_touch(pToucher, pTouched) {
new itemClassName[MAX_NAME_LENGTH], playerClassname[MAX_NAME_LENGTH]
entity_get_string(pToucher, EV_SZ_classname, itemClassName, MAX_NAME_LENGTH-1);
entity_get_string(pTouched, EV_SZ_classname, playerClassname, MAX_NAME_LENGTH-1)
client_print(0, print_chat, "[AMXX-DEBUG] %s touched %s",playerClassname,itemClassName)
}
I get the error:
Code:
test.sma(19) : error 025: function heading differs from prototype
usind the "old" vexd version works fine
Code:
public vexd_pfntouch(pToucher, pTouched) {
so what was changed to the function? and how would a correct usage of pfn_touch look like?