OnPlayerTakeDamage doesn't work
#1

As stated in previous threads I tried to return the cmd "dropgun" when a player takes damage (I didn't add bodypart for debugging)

Error shows up > Undefined symbol - Params

I know that it doesn't work because there isn't any params in the callback
So anyone knows how to fix it ? (Pretty new to experienced scripting)
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    new 
string[128];
    
format(string,sizeof(string),"-%.0f HP",amount);
    
SetPlayerChatBubble(playerid,string,0x660000AA,150.0,2500);
    if(!
IsPlayerInAnyVehicle(playerid) && IsPlayerLoggedIn(playerid))
    {
        return 
cmd_dropgun(playeridparams);
    }
    return 
1;

Reply


Messages In This Thread
OnPlayerTakeDamage doesn't work - by NeXoR - 03.04.2016, 22:07
Re: OnPlayerTakeDamage doesn't work - by Jefff - 03.04.2016, 22:11
Re: OnPlayerTakeDamage doesn't work - by NeXoR - 03.04.2016, 22:13
Re: OnPlayerTakeDamage doesn't work - by Jefff - 03.04.2016, 22:15
Re: OnPlayerTakeDamage doesn't work - by NeXoR - 03.04.2016, 22:19
Re: OnPlayerTakeDamage doesn't work - by AndySedeyn - 03.04.2016, 22:20
Re: OnPlayerTakeDamage doesn't work - by NeXoR - 03.04.2016, 22:22
Re: OnPlayerTakeDamage doesn't work - by AndySedeyn - 03.04.2016, 22:26
Re: OnPlayerTakeDamage doesn't work - by NeXoR - 03.04.2016, 22:26
Re: OnPlayerTakeDamage doesn't work - by AndySedeyn - 03.04.2016, 22:28

Forum Jump:


Users browsing this thread: 3 Guest(s)