vulturous
Новичок
PHP:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
#pragma unused issuerid
#pragma unused amount
const Float: p_hp; ///4990
GetPlayerHealth(playerid, p_hp); //4991
switch(weaponid)
{
case 24: SetPlayerHealth(playerid, p_hp - 50); // Desert Eagle
case 22: SetPlayerHealth(playerid, p_hp - 50); // Colt 45
case 32: SetPlayerHealth(playerid, p_hp -10); // Tec 9
case 28: SetPlayerHealth(playerid, p_hp -10); // Uzi
case 23: SetPlayerHealth(playerid, p_hp -50); // Silenced Colt
case 31: SetPlayerHealth(playerid, p_hp -35); // M4
case 30: SetPlayerHealth(playerid, p_hp -40); // AK
case 29: SetPlayerHealth(playerid, p_hp -18); // MP5
case 34: SetPlayerHealth(playerid, p_hp -300); // Sniper Rifle
case 33: SetPlayerHealth(playerid, p_hp -35); // Cunt Gun
case 25: SetPlayerHealth(playerid, p_hp -100); // Pump Shotgun
case 27: SetPlayerHealth(playerid, p_hp -70); // Spaz 12
}
return true;
}
.pwn(4991) : error 035: argument type mismatch (argument 2)
2 Errors.
Добавил new p_hp;
PHP:
const Float: p_hp; // 91
GetPlayerHealth(playerid, p_hp);// 92
.pwn(4992) : warning 213: tag mismatch
Добавил
PHP:
static const Float: p_hp; ///4990
1 Error.
Последнее редактирование:
