Raised This Month: $ Target: $400
 0% 

engine changes to pfn touch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DopeFish
Senior Member
Join Date: Feb 2004
Old 03-17-2004 , 17:06   engine changes to pfn touch
Reply With Quote #1

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?
DopeFish is offline
Send a message via ICQ to DopeFish
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode