0 Members and 1 Guest are viewing this topic.
Function OnPlayerDamage(Victim, Shooter: Byte; Damage: Integer): Integer; var Dam,Chance: Integer; <<<<<<<<<<<<<<<<< THIS LINEbegin // Crusher (additional damage(10-15)) if Klasse[Shooter] = 'Crusher' then begin Dam := Random(10,15); Result := Damage + Dam; end else Result := Damage;// Crusher (additional damage(10-15)) if Klasse[Victim] = 'Crusher' then begin Dam := Random(10,15); Result := Damage - Dam; end else Result := Damage; // Thief (additional selfdamage) if Klasse[Victim] = 'Thief' then begin Dam := Random(5,25); Result := Damage + Dam; end else Result := Damage; // Alchemist (exploding knives) if Klasse[Shooter] = 'Alchemist' then begin Chance := Random(1,2); if Chance = 1 then begin CreateBullet(GetPlayerStat(Victim,'x'), GetPlayerStat(Victim,'y') - 500, 0, 0, 100, 4, Shooter); end;end;
Hmmmm which line get an error ?
I marked the line.[...]
Chance := Random(1,2); if Chance = 1 then begin