thx
i added the check like this:
Line 316:
PHP Code:
if (ptr > 0 && ptd > 0 && pev_valid(ptr) && pev_valid(ptd)) {
and also included:
PHP Code:
#include <fakemeta>
It compiled flawlessly.
edit:
Damn, now i'm getting this error:
Code:
L 06/13/2010 - 00:48:33: [AMXX] [0] portal.sma::pfn_touch (line 336)
L 06/13/2010 - 00:48:33: [FUN] Player out of range (358)
L 06/13/2010 - 00:48:33: [AMXX] Displaying debug trace (plugin "portal.amxx")
L 06/13/2010 - 00:48:33: [AMXX] Run time error 10: native error (native "set_use
r_origin")
L 06/13/2010 - 00:48:33: [AMXX] [0] portal.sma::pfn_touch (line 336)
L 06/13/2010 - 00:48:33: [FUN] Player out of range (359)
L 06/13/2010 - 00:48:33: [AMXX] Displaying debug trace (plugin "portal.amxx")
L 06/13/2010 - 00:48:33: [AMXX] Run time error 10: native error (native "set_use
r_origin")
__________________