AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help with this eroor (https://forums.alliedmods.net/showthread.php?t=222938)

Reddewill 08-08-2013 08:28

help with this eroor
 
help this eror plz mod cod mod

L 08/08/2013 - 13:56:39: [AMXX] Displaying debug trace (plugin "RedDewill.amxx")
L 08/08/2013 - 13:56:39: [AMXX] Run time error 10: native error (native "entity_get_int")
L 08/08/2013 - 13:56:39: [AMXX] [0] RedDewill.sma::PokazInformacje (line 5917)
L 08/08/2013 - 13:56:39: [ENGINE] Invalid entity 32

PHP Code:

public PokazInformacje(id
{
    
id -= ZADANIE_POKAZ_INFORMACJE
    
    set_task
(0.1"PokazInformacje"id ZADANIE_POKAZ_INFORMACJE)
    
    if(
is_user_alive(id))
          
    {
        new 
target entity_get_int(idEV_INT_iuser2)
        if(
target == 0)
        {
            return 
PLUGIN_CONTINUE
        



devilicioux 08-08-2013 08:52

Re: help with this eroor
 
Try this..

PHP Code:

public PokazInformacje(id
{  
if(!
is_user_alive(id))
return 
PLUGIN_HANDLED

    id 
-= ZADANIE_POKAZ_INFORMACJE
    set_task
(0.1"PokazInformacje"id ZADANIE_POKAZ_INFORMACJE)
        new 
target entity_get_int(idEV_INT_iuser2)
        if(
target == 0)
        {
            return 
PLUGIN_CONTINUE
        




All times are GMT -4. The time now is 15:45.

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