PDA

View Full Version : More weapon damage, need help!


dafuq
02/09/2012, 11:33 AM
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);

new deathreason[32];
if(reason == 0) {format(deathreason, sizeof(deathreason), "Fists");}
if(reason == 1) {format(deathreason, sizeof(deathreason), "Brass Knuckles");}
if(reason == 2) {format(deathreason, sizeof(deathreason), "Golf Stick");}
if(reason == 3) {format(deathreason, sizeof(deathreason), "Cop Stick");}
if(reason == 4) {format(deathreason, sizeof(deathreason), "Knife");}
if(reason == 5) {format(deathreason, sizeof(deathreason), "Baseball Bat");}
if(reason == 6) {format(deathreason, sizeof(deathreason), "Shovel");}
if(reason == 7) {format(deathreason, sizeof(deathreason), "Pool Cue");}
if(reason == 8) {format(deathreason, sizeof(deathreason), "Katana");}
if(reason == 9) {format(deathreason, sizeof(deathreason), "Chainsaw");}
if(reason == 10){format(deathreason, sizeof(deathreason), "Dildo");}
if(reason == 11){format(deathreason, sizeof(deathreason), "Small Vibrator");}
if(reason == 12){format(deathreason, sizeof(deathreason), "Large Vibrator");}
if(reason == 13){format(deathreason, sizeof(deathreason), "Vibrator");}
if(reason == 14){format(deathreason, sizeof(deathreason), "Flowers");}
if(reason == 15){format(deathreason, sizeof(deathreason), "Cane");}
if(reason == 16){format(deathreason, sizeof(deathreason), "Grenade");}
if(reason == 17){format(deathreason, sizeof(deathreason), "Smoke Grenade");}
if(reason == 18){format(deathreason, sizeof(deathreason), "Molotov Cocktail");}
if(reason == 19){format(deathreason, sizeof(deathreason), "Vehicle Weapon");}
if(reason == 20){format(deathreason, sizeof(deathreason), "Hydra Flare");}
if(reason == 21){format(deathreason, sizeof(deathreason), "Jetpack");}
if(reason == 22){format(deathreason, sizeof(deathreason), "9mm");}
if(reason == 23){format(deathreason, sizeof(deathreason), "Silenced 9mm");}
if(reason == 24){format(deathreason, sizeof(deathreason), "Desert Eagle");}
if(reason == 25){format(deathreason, sizeof(deathreason), "Shotgun");}
if(reason == 26){format(deathreason, sizeof(deathreason), "Sawnoff Shotgun");}
if(reason == 27){format(deathreason, sizeof(deathreason), "Combat Shotgun");}
if(reason == 28){format(deathreason, sizeof(deathreason), "Micro SMG");}
if(reason == 29){format(deathreason, sizeof(deathreason), "MP5");}
if(reason == 30){format(deathreason, sizeof(deathreason), "AK47");}
if(reason == 31){format(deathreason, sizeof(deathreason), "M4");}
if(reason == 32){format(deathreason, sizeof(deathreason), "Tec-9");}
if(reason == 33){format(deathreason, sizeof(deathreason), "Rifle");}
if(reason == 34){format(deathreason, sizeof(deathreason), "Sniper Rifle");}
if(reason == 35){format(deathreason, sizeof(deathreason), "Rocket Launcherr");}
if(reason == 36){format(deathreason, sizeof(deathreason), "Rocket Launcher");}
if(reason == 37){format(deathreason, sizeof(deathreason), "Flamethrower");}
if(reason == 38){format(deathreason, sizeof(deathreason), "Minigun");}
if(reason == 39){format(deathreason, sizeof(deathreason), "Backpack Bomb");}
if(reason == 40){format(deathreason, sizeof(deathreason), "Detonator");}
if(reason == 41){format(deathreason, sizeof(deathreason), "Spraycan");}
if(reason == 42){format(deathreason, sizeof(deathreason), "Fire Extinguisher");}
if(reason == 43){format(deathreason, sizeof(deathreason), "Camera");}
if(reason == 44){format(deathreason, sizeof(deathreason), "Nightvision Goggles");}
if(reason == 45){format(deathreason, sizeof(deathreason), "Infrared Goggles");}
if(reason == 46){format(deathreason, sizeof(deathreason), "Parachute");}
if(reason == 47){format(deathreason, sizeof(deathreason), "!>>> Unknown 47 <<<!");}
if(reason == 48){format(deathreason, sizeof(deathreason), "!>>> Unknown 48 <<<!");}
if(reason == 49){format(deathreason, sizeof(deathreason), "Vehicle");}
if(reason == 50){format(deathreason, sizeof(deathreason), "Helicopter Blades");}
if(reason == 51){format(deathreason, sizeof(deathreason), "Explosion");}
if(reason == 52){format(deathreason, sizeof(deathreason), "!>>> Unknown 52 <<<!");}
if(reason == 53){format(deathreason, sizeof(deathreason), "Drowned");}
if(reason == 54){format(deathreason, sizeof(deathreason), "Splat");}
if(reason == 55){format(deathreason, sizeof(deathreason), "!>>> Unknown 55 <<<!");}
if(reason == 255){format(deathreason, sizeof(deathreason), "Died");}

}



OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
if(weaponid == 0) SetPlayerHealth(playerid, HP-5);
if(weaponid == 1) SetPlayerHealth(playerid, HP-9);
if(weaponid == 2) SetPlayerHealth(playerid, HP-12);
if(weaponid == 3) SetPlayerHealth(playerid, HP-8);
if(weaponid == 4) SetPlayerHealth(playerid, HP-14);
if(weaponid == 5) SetPlayerHealth(playerid, HP-15);
if(weaponid == 6) SetPlayerHealth(playerid, HP-7);
if(weaponid == 7) SetPlayerHealth(playerid, HP-6);
if(weaponid == 8) SetPlayerHealth(playerid, HP-16);
if(weaponid == 9) SetPlayerHealth(playerid, HP-20);
if(weaponid == 10) SetPlayerHealth(playerid, HP-4);
if(weaponid == 11) SetPlayerHealth(playerid, HP-6);
if(weaponid == 12) SetPlayerHealth(playerid, HP-7);
if(weaponid == 13) SetPlayerHealth(playerid, HP-4);
if(weaponid == 14) SetPlayerHealth(playerid, HP-10);
if(weaponid == 15) SetPlayerHealth(playerid, HP-13);
if(weaponid == 16) SetPlayerHealth(playerid, HP-100);
if(weaponid == 17) SetPlayerHealth(playerid, HP-50);
if(weaponid == 22) SetPlayerHealth(playerid, HP-25);
if(weaponid == 23) SetPlayerHealth(playerid, HP-26);
if(weaponid == 24) SetPlayerHealth(playerid, HP-50);
if(weaponid == 25) SetPlayerHealth(playerid, HP-70);
if(weaponid == 26) SetPlayerHealth(playerid, HP-35);
if(weaponid == 27) SetPlayerHealth(playerid, HP-40);
if(weaponid == 28) SetPlayerHealth(playerid, HP-29);
if(weaponid == 29) SetPlayerHealth(playerid, HP-35);
if(weaponid == 30) SetPlayerHealth(playerid, HP-45);
if(weaponid == 31) SetPlayerHealth(playerid, HP-48);
if(weaponid == 32) SetPlayerHealth(playerid, HP-30);
if(weaponid == 33) SetPlayerHealth(playerid, HP-90);
if(weaponid == 34) SetPlayerHealth(playerid, HP-100);
if(weaponid == 35) SetPlayerHealth(playerid, HP-150);
if(weaponid == 36) SetPlayerHealth(playerid, HP-170);
if(weaponid == 37) SetPlayerHealth(playerid, HP-30);
if(weaponid == 38) SetPlayerHealth(playerid, HP-15);
if(weaponid == 39) SetPlayerHealth(playerid, HP-150);
if(weaponid == 41) SetPlayerHealth(playerid, HP-25);
if(weaponid == 42) SetPlayerHealth(playerid, HP-15);
return 1;
}


It says I got 26 errors :D How I can fix it-.-

TaLhA XIV
02/09/2012, 11:43 AM
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);

new deathreason[32];
if(reason == 0) {format(deathreason, sizeof(deathreason), "Fists");}
if(reason == 1) {format(deathreason, sizeof(deathreason), "Brass Knuckles");}
if(reason == 2) {format(deathreason, sizeof(deathreason), "Golf Stick");}
if(reason == 3) {format(deathreason, sizeof(deathreason), "Cop Stick");}
if(reason == 4) {format(deathreason, sizeof(deathreason), "Knife");}
if(reason == 5) {format(deathreason, sizeof(deathreason), "Baseball Bat");}
if(reason == 6) {format(deathreason, sizeof(deathreason), "Shovel");}
if(reason == 7) {format(deathreason, sizeof(deathreason), "Pool Cue");}
if(reason == 9) {format(deathreason, sizeof(deathreason), "Chainsaw");}
if(reason == 10){format(deathreason, sizeof(deathreason), "Dildo");}
if(reason == 11){format(deathreason, sizeof(deathreason), "Small Vibrator");}
if(reason == 12){format(deathreason, sizeof(deathreason), "Large Vibrator");}
if(reason == 13){format(deathreason, sizeof(deathreason), "Vibrator");}
if(reason == 14){format(deathreason, sizeof(deathreason), "Flowers");}
if(reason == 15){format(deathreason, sizeof(deathreason), "Cane");}
if(reason == 16){format(deathreason, sizeof(deathreason), "Grenade");}
if(reason == 17){format(deathreason, sizeof(deathreason), "Smoke Grenade");}
if(reason == 1){format(deathreason, sizeof(deathreason), "Molotov Cocktail");}
if(reason == 19){format(deathreason, sizeof(deathreason), "Vehicle Weapon");}
if(reason == 20){format(deathreason, sizeof(deathreason), "Hydra Flare");}
if(reason == 21){format(deathreason, sizeof(deathreason), "Jetpack");}
if(reason == 22){format(deathreason, sizeof(deathreason), "9mm");}
if(reason == 23){format(deathreason, sizeof(deathreason), "Silenced 9mm");}
if(reason == 24){format(deathreason, sizeof(deathreason), "Desert Eagle");}
if(reason == 25){format(deathreason, sizeof(deathreason), "Shotgun");}
if(reason == 26){format(deathreason, sizeof(deathreason), "Sawnoff Shotgun");}
if(reason == 27){format(deathreason, sizeof(deathreason), "Combat Shotgun");}
if(reason == 2){format(deathreason, sizeof(deathreason), "Micro SMG");}
if(reason == 29){format(deathreason, sizeof(deathreason), "MP5");}
if(reason == 30){format(deathreason, sizeof(deathreason), "AK47");}
if(reason == 31){format(deathreason, sizeof(deathreason), "M4");}
if(reason == 32){format(deathreason, sizeof(deathreason), "Tec-9");}
if(reason == 33){format(deathreason, sizeof(deathreason), "Rifle");}
if(reason == 34){format(deathreason, sizeof(deathreason), "Sniper Rifle");}
if(reason == 35){format(deathreason, sizeof(deathreason), "Rocket Launcherr");}
if(reason == 36){format(deathreason, sizeof(deathreason), "Rocket Launcher");}
if(reason == 37){format(deathreason, sizeof(deathreason), "Flamethrower");}
if(reason == 3){format(deathreason, sizeof(deathreason), "Minigun");}
if(reason == 39){format(deathreason, sizeof(deathreason), "Backpack Bomb");}
if(reason == 40){format(deathreason, sizeof(deathreason), "Detonator");}
if(reason == 41){format(deathreason, sizeof(deathreason), "Spraycan");}
if(reason == 42){format(deathreason, sizeof(deathreason), "Fire Extinguisher");}
if(reason == 43){format(deathreason, sizeof(deathreason), "Camera");}
if(reason == 44){format(deathreason, sizeof(deathreason), "Nightvision Goggles");}
if(reason == 45){format(deathreason, sizeof(deathreason), "Infrared Goggles");}
if(reason == 46){format(deathreason, sizeof(deathreason), "Parachute");}
if(reason == 47){format(deathreason, sizeof(deathreason), "!>>> Unknown 47 <<<!");}
if(reason == 4){format(deathreason, sizeof(deathreason), "!>>> Unknown 48 <<<!");}
if(reason == 49){format(deathreason, sizeof(deathreason), "Vehicle");}
if(reason == 50){format(deathreason, sizeof(deathreason), "Helicopter Blades");}
if(reason == 51){format(deathreason, sizeof(deathreason), "Explosion");}
if(reason == 52){format(deathreason, sizeof(deathreason), "!>>> Unknown 52 <<<!");}
if(reason == 53){format(deathreason, sizeof(deathreason), "Drowned");}
if(reason == 54){format(deathreason, sizeof(deathreason), "Splat");}
if(reason == 55){format(deathreason, sizeof(deathreason), "!>>> Unknown 55 <<<!");}
if(reason == 255){format(deathreason, sizeof(deathreason), "Died");}

}
OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
if(weaponid == 0) SetPlayerHealth(playerid, HP-5);
if(weaponid == 1) SetPlayerHealth(playerid, HP-9);
if(weaponid == 2) SetPlayerHealth(playerid, HP-12);
if(weaponid == 3) SetPlayerHealth(playerid, HP-13);
if(weaponid == 4) SetPlayerHealth(playerid, HP-14);
if(weaponid == 5) SetPlayerHealth(playerid, HP-15);
if(weaponid == 6) SetPlayerHealth(playerid, HP-7);
if(weaponid == 7) SetPlayerHealth(playerid, HP-6);
if(weaponid == 9) SetPlayerHealth(playerid, HP-20);
if(weaponid == 10) SetPlayerHealth(playerid, HP-4);
if(weaponid == 11) SetPlayerHealth(playerid, HP-6);
if(weaponid == 12) SetPlayerHealth(playerid, HP-7);
if(weaponid == 13) SetPlayerHealth(playerid, HP-4);
if(weaponid == 14) SetPlayerHealth(playerid, HP-10);
if(weaponid == 15) SetPlayerHealth(playerid, HP-13);
if(weaponid == 16) SetPlayerHealth(playerid, HP-100);
if(weaponid == 17) SetPlayerHealth(playerid, HP-50);
if(weaponid == 22) SetPlayerHealth(playerid, HP-25);
if(weaponid == 23) SetPlayerHealth(playerid, HP-26);
if(weaponid == 24) SetPlayerHealth(playerid, HP-50);
if(weaponid == 25) SetPlayerHealth(playerid, HP-70);
if(weaponid == 26) SetPlayerHealth(playerid, HP-35);
if(weaponid == 27) SetPlayerHealth(playerid, HP-40);
if(weaponid == 2 )SetPlayerHealth(playerid, HP-29);
if(weaponid == 29) SetPlayerHealth(playerid, HP-35);
if(weaponid == 30) SetPlayerHealth(playerid, HP-45);
if(weaponid == 31) SetPlayerHealth(playerid, HP-4);
if(weaponid == 32) SetPlayerHealth(playerid, HP-30);
if(weaponid == 33) SetPlayerHealth(playerid, HP-90);
if(weaponid == 34) SetPlayerHealth(playerid, HP-100);
if(weaponid == 35) SetPlayerHealth(playerid, HP-150);
if(weaponid == 36) SetPlayerHealth(playerid, HP-170);
if(weaponid == 37) SetPlayerHealth(playerid, HP-30);
if(weaponid == 3 )SetPlayerHealth(playerid, HP-15);
if(weaponid == 39) SetPlayerHealth(playerid, HP-150);
if(weaponid == 41) SetPlayerHealth(playerid, HP-25);
if(weaponid == 42) SetPlayerHealth(playerid, HP-15);
return 1;
}

Try this.

Gangster-rocks
02/09/2012, 11:45 AM
Use code here for pawno codes

dafuq
02/09/2012, 11:55 AM
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);

new deathreason[32];
if(reason == 0) {format(deathreason, sizeof(deathreason), "Fists");}
if(reason == 1) {format(deathreason, sizeof(deathreason), "Brass Knuckles");}
if(reason == 2) {format(deathreason, sizeof(deathreason), "Golf Stick");}
if(reason == 3) {format(deathreason, sizeof(deathreason), "Cop Stick");}
if(reason == 4) {format(deathreason, sizeof(deathreason), "Knife");}
if(reason == 5) {format(deathreason, sizeof(deathreason), "Baseball Bat");}
if(reason == 6) {format(deathreason, sizeof(deathreason), "Shovel");}
if(reason == 7) {format(deathreason, sizeof(deathreason), "Pool Cue");}
if(reason == 9) {format(deathreason, sizeof(deathreason), "Chainsaw");}
if(reason == 10){format(deathreason, sizeof(deathreason), "Dildo");}
if(reason == 11){format(deathreason, sizeof(deathreason), "Small Vibrator");}
if(reason == 12){format(deathreason, sizeof(deathreason), "Large Vibrator");}
if(reason == 13){format(deathreason, sizeof(deathreason), "Vibrator");}
if(reason == 14){format(deathreason, sizeof(deathreason), "Flowers");}
if(reason == 15){format(deathreason, sizeof(deathreason), "Cane");}
if(reason == 16){format(deathreason, sizeof(deathreason), "Grenade");}
if(reason == 17){format(deathreason, sizeof(deathreason), "Smoke Grenade");}
if(reason == 1){format(deathreason, sizeof(deathreason), "Molotov Cocktail");}
if(reason == 19){format(deathreason, sizeof(deathreason), "Vehicle Weapon");}
if(reason == 20){format(deathreason, sizeof(deathreason), "Hydra Flare");}
if(reason == 21){format(deathreason, sizeof(deathreason), "Jetpack");}
if(reason == 22){format(deathreason, sizeof(deathreason), "9mm");}
if(reason == 23){format(deathreason, sizeof(deathreason), "Silenced 9mm");}
if(reason == 24){format(deathreason, sizeof(deathreason), "Desert Eagle");}
if(reason == 25){format(deathreason, sizeof(deathreason), "Shotgun");}
if(reason == 26){format(deathreason, sizeof(deathreason), "Sawnoff Shotgun");}
if(reason == 27){format(deathreason, sizeof(deathreason), "Combat Shotgun");}
if(reason == 2){format(deathreason, sizeof(deathreason), "Micro SMG");}
if(reason == 29){format(deathreason, sizeof(deathreason), "MP5");}
if(reason == 30){format(deathreason, sizeof(deathreason), "AK47");}
if(reason == 31){format(deathreason, sizeof(deathreason), "M4");}
if(reason == 32){format(deathreason, sizeof(deathreason), "Tec-9");}
if(reason == 33){format(deathreason, sizeof(deathreason), "Rifle");}
if(reason == 34){format(deathreason, sizeof(deathreason), "Sniper Rifle");}
if(reason == 35){format(deathreason, sizeof(deathreason), "Rocket Launcherr");}
if(reason == 36){format(deathreason, sizeof(deathreason), "Rocket Launcher");}
if(reason == 37){format(deathreason, sizeof(deathreason), "Flamethrower");}
if(reason == 3){format(deathreason, sizeof(deathreason), "Minigun");}
if(reason == 39){format(deathreason, sizeof(deathreason), "Backpack Bomb");}
if(reason == 40){format(deathreason, sizeof(deathreason), "Detonator");}
if(reason == 41){format(deathreason, sizeof(deathreason), "Spraycan");}
if(reason == 42){format(deathreason, sizeof(deathreason), "Fire Extinguisher");}
if(reason == 43){format(deathreason, sizeof(deathreason), "Camera");}
if(reason == 44){format(deathreason, sizeof(deathreason), "Nightvision Goggles");}
if(reason == 45){format(deathreason, sizeof(deathreason), "Infrared Goggles");}
if(reason == 46){format(deathreason, sizeof(deathreason), "Parachute");}
if(reason == 47){format(deathreason, sizeof(deathreason), "!>>> Unknown 47 <<<!");}
if(reason == 4){format(deathreason, sizeof(deathreason), "!>>> Unknown 48 <<<!");}
if(reason == 49){format(deathreason, sizeof(deathreason), "Vehicle");}
if(reason == 50){format(deathreason, sizeof(deathreason), "Helicopter Blades");}
if(reason == 51){format(deathreason, sizeof(deathreason), "Explosion");}
if(reason == 52){format(deathreason, sizeof(deathreason), "!>>> Unknown 52 <<<!");}
if(reason == 53){format(deathreason, sizeof(deathreason), "Drowned");}
if(reason == 54){format(deathreason, sizeof(deathreason), "Splat");}
if(reason == 55){format(deathreason, sizeof(deathreason), "!>>> Unknown 55 <<<!");}
if(reason == 255){format(deathreason, sizeof(deathreason), "Died");}

}
OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
if(weaponid == 0) SetPlayerHealth(playerid, HP-5);
if(weaponid == 1) SetPlayerHealth(playerid, HP-9);
if(weaponid == 2) SetPlayerHealth(playerid, HP-12);
if(weaponid == 3) SetPlayerHealth(playerid, HP-13);
if(weaponid == 4) SetPlayerHealth(playerid, HP-14);
if(weaponid == 5) SetPlayerHealth(playerid, HP-15);
if(weaponid == 6) SetPlayerHealth(playerid, HP-7);
if(weaponid == 7) SetPlayerHealth(playerid, HP-6);
if(weaponid == 9) SetPlayerHealth(playerid, HP-20);
if(weaponid == 10) SetPlayerHealth(playerid, HP-4);
if(weaponid == 11) SetPlayerHealth(playerid, HP-6);
if(weaponid == 12) SetPlayerHealth(playerid, HP-7);
if(weaponid == 13) SetPlayerHealth(playerid, HP-4);
if(weaponid == 14) SetPlayerHealth(playerid, HP-10);
if(weaponid == 15) SetPlayerHealth(playerid, HP-13);
if(weaponid == 16) SetPlayerHealth(playerid, HP-100);
if(weaponid == 17) SetPlayerHealth(playerid, HP-50);
if(weaponid == 22) SetPlayerHealth(playerid, HP-25);
if(weaponid == 23) SetPlayerHealth(playerid, HP-26);
if(weaponid == 24) SetPlayerHealth(playerid, HP-50);
if(weaponid == 25) SetPlayerHealth(playerid, HP-70);
if(weaponid == 26) SetPlayerHealth(playerid, HP-35);
if(weaponid == 27) SetPlayerHealth(playerid, HP-40);
if(weaponid == 2 )SetPlayerHealth(playerid, HP-29);
if(weaponid == 29) SetPlayerHealth(playerid, HP-35);
if(weaponid == 30) SetPlayerHealth(playerid, HP-45);
if(weaponid == 31) SetPlayerHealth(playerid, HP-4);
if(weaponid == 32) SetPlayerHealth(playerid, HP-30);
if(weaponid == 33) SetPlayerHealth(playerid, HP-90);
if(weaponid == 34) SetPlayerHealth(playerid, HP-100);
if(weaponid == 35) SetPlayerHealth(playerid, HP-150);
if(weaponid == 36) SetPlayerHealth(playerid, HP-170);
if(weaponid == 37) SetPlayerHealth(playerid, HP-30);
if(weaponid == 3 )SetPlayerHealth(playerid, HP-15);
if(weaponid == 39) SetPlayerHealth(playerid, HP-150);
if(weaponid == 41) SetPlayerHealth(playerid, HP-25);
if(weaponid == 42) SetPlayerHealth(playerid, HP-15);
return 1;
}

Try this.

It was that same-.-

TaLhA XIV
02/09/2012, 12:15 PM
No it was not.Did you gave it a try?

dafuq
02/09/2012, 04:54 PM
Yes I did, still 26 errors.

Yiin
12/01/2013, 10:44 AM
this code is so fked up. Just take a look on reasons ids, weapon ids and you will see.
btw, what is that?

OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)

you need forward function, like

forward OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)

and 26 errors. What errors? "error 1337: cat not found" ?

edit: ups, found this topic using ******. sorry for bump :|