03.04.2016, 22:07
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)
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(playerid, issuerid, Float: amount, weaponid, bodypart)
{
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(playerid, params);
}
return 1;
}