09.05.2020, 13:10
Hello! Is there any way to save the amount of damage to a player variable?
I've tried this form but it doesn't work:
I need save all the damage one does to another player for a top, but this shows the error:
Thanks!
I've tried this form but it doesn't work:
PHP Code:
public OnPlayerTakeDamage(playerid, issuerid,Float: amount, weaponid)
{
if (issuerid != INVALID_PLAYER_ID)
{
PlayerInfo[playerid][TotalDMG] = ++amount;
}
return 1;
}
PHP Code:
C:\Users\thef\Escritorio\SERVER\gamemodes\game.pwn(849) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"