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

set_user_godmode


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Id0x.
Junior Member
Join Date: Dec 2020
Old 01-24-2021 , 05:13   set_user_godmode
Reply With Quote #1

HTML Code:
L 01/24/2021 - 09:50:29: [AMXX] Displaying debug trace (plugin "deathmatch.amxx", version "1.1")
L 01/24/2021 - 09:50:29: [AMXX] Run time error 10: native error (native "set_user_godmode")
L 01/24/2021 - 09:50:29: [AMXX]    [0] phpfsMGdR.sma::remove_gode (line 289)
PHP Code:
public get_gode(id)
{
    
set_user_godmode(id1)
    
set_task(1.0"remove_gode"id)
}

public 
remove_gode(id)
{
    
set_user_godmode(id0)

Line 289 :
PHP Code:
set_user_godmode(id0
Id0x. is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 01-24-2021 , 05:41   Re: set_user_godmode
Reply With Quote #2

are u sure u are using fun in your plugin ?

Last edited by lexzor; 01-24-2021 at 05:42.
lexzor is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-24-2021 , 06:19   Re: set_user_godmode
Reply With Quote #3

show full code

also show the full error log.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 01-24-2021 at 06:20.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-24-2021 , 07:38   Re: set_user_godmode
Reply With Quote #4

Either yout "get_gode" function does not have a valid "id" parameter or the player disconnected during the 1 second delay.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Id0x.
Junior Member
Join Date: Dec 2020
Old 01-24-2021 , 08:29   Re: set_user_godmode
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
Either yout "get_gode" function does not have a valid "id" parameter or the player disconnected during the 1 second delay.
PHP Code:
public EVENT_Death() 
{
    static 
AttackerVictim;
    
Attacker read_data(1)
    
Victim read_data(2)
    
    if(
Victim == Attacker
        return 
1;
        
    if(
DeathMatch)
    {
        if(
Victim)
        {
            
set_task(1.0"iamalive"Victim)
        }
    }
    return 
PLUGIN_HANDLED
}

public 
iamalive(id)
{
    if(!
is_user_alive(id))
    
ExecuteHamB(Ham_CS_RoundRespawnid)
    
get_gode(id)
}

public 
get_gode(id)
{
    
set_user_godmode(id1)
    
set_task(1.0"remove_gode"id)
}

public 
remove_gode(id)
{
    
set_user_godmode(id0)


Last edited by Id0x.; 01-24-2021 at 08:30.
Id0x. is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-24-2021 , 08:34   Re: set_user_godmode
Reply With Quote #6

What is "DeathMatch"? Where are the brackets after the is_user_alive() check?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-24-2021 , 10:15   Re: set_user_godmode
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
show full code

also show the full error log.
Why people just don't listen?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 05:50.


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