Raised This Month: $51 Target: $400
 12% 

[FAKEMETA] Invalid entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 01-30-2014 , 14:43   [FAKEMETA] Invalid entity
Reply With Quote #1

Error logs:
Code:
L 01/30/2014 - 20:32:35: [AMXX] Displaying debug trace (plugin "ruletka.amxx", version "1.2.6")
L 01/30/2014 - 20:32:35: [AMXX] Run time error 10: native error (native "pev")
L 01/30/2014 - 20:32:35: [AMXX]    [0] Untitled.sma::pfn_touch (line 934)
L 01/30/2014 - 20:32:35: [FAKEMETA] Invalid entity
Code:
PHP Code:
public pfn_touch(ptrptd) {
    if(!
ptd) return 0;

    new 
szClassName[32]; pev(ptdpev_classnameszClassName31);

    if(
ptr) {
        new 
szClassNameOther[32]; pev(ptrpev_classnameszClassNameOther31);

        if(
equal(szClassName"grenade") && equal(szClassNameOther"player")) {
            new 
greModel[64]; pev(ptdpev_modelgreModel63);

            if(
equali(greModel"models/w_smokegrenade.mdl")) {
                new 
id pev(ptdpev_owner);

                if(
is_user_alive(id) && is_user_alive(ptr) && SmiertelneSmoke[id] && get_user_team(id) != get_user_team(ptr) && pev(ptrpev_takedamage) != 0.0) {
                    
//ExecuteHamB(Ham_Killed, ptr, id, 0);
                    
set_pev(idpev_fragsfloat(pev(idpev_frags)) + 1);

                    
user_silentkill(ptr);
                    
message_begin(283, {000}, 0);
                    
write_byte(id);
                    
write_byte(ptr);
                    
write_byte(0);
                    
write_string("world");
                    
message_end();

                    
message_begin(285);
                    
write_byte(id);
                    
write_short(pev(idpev_frags));
                    
write_short(get_user_deaths(id));
                    
write_short(0);
                    
write_short(get_user_team(id));
                    
message_end();

                    
message_begin(285);
                    
write_byte(ptr);
                    
write_short(pev(ptrpev_frags));
                    
write_short(get_user_deaths(ptr));
                    
write_short(0);
                    
write_short(get_user_team(ptr));
                    
message_end();
                }
            }
        }
    }
    return 
0;

line 934:
PHP Code:
new szClassNameOther[32]; pev(ptrpev_classnameszClassNameOther31); 
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-31-2014 , 01:04   Re: [FAKEMETA] Invalid entity
Reply With Quote #2

line 934 is not the one you gave.
Would be better to use register_touch rather that pfn_touch, so entities would be filtered directly in engine module.

Try this (you need amxx1.8.3 to compile and to run) :

Spoiler
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-31-2014 at 01:28.
ConnorMcLeod is offline
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 02-03-2014 , 12:36   Re: [FAKEMETA] Invalid entity
Reply With Quote #3

Thanks, solved
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
Reply



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 10:31.


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