C:\Users\Alex\Desktop\Server\gamemodes\Deathmatch.pwn(1860) : error 017: undefined symbol "INVALID"
C:\Users\Alex\Desktop\Server\gamemodes\Deathmatch.pwn(1860) : error 017: undefined symbol "PLAYER_ID"
C:\Users\Alex\Desktop\Server\gamemodes\Deathmatch.pwn(1860) : error 029: invalid expression, assumed zero
C:\Users\Alex\Desktop\Server\gamemodes\Deathmatch.pwn(1860) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new string[124];
new weaponname[24], name[MAX_PLAYER_NAME];
if(issuerid != INVALID PLAYER_ID)
{
PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
GetPlayerName(issuerid,name,sizeof(name));
GetWeaponName(weaponid, weaponname, sizeof (weaponname));
format(string,sizeof(string),"Schaden: %.0f HP\nWaffe: %s\nAngreifer: %s",amount,weaponname,name);
DamageLabel[playerid] = Create3DTextLabel(string,0xFF0000FF,0.0,0.0,0.0,20.0,-1,0);
Attach3DTextLabelToPlayer(DamageLabel[playerid],playerid,0.0,0.0,0.7);
}
return 1;
}
Zeile
if(issuerid != INVALID PLAYER_ID)