forward SpawnKill(playerid);
SetPlayerHealth(playerid,99999);
SetTimerEx("SpawnKill",10000,0,"i",playerid);
public SpawnKill(playerid)
{
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid,red,"SpawnKill Over!");
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid, 100000.0);
SetTimerEx("AntiSpawnkill",5000,0,"i",playerid);
return 1;
}
forward AntiSpawnkill(playerid);
public AntiSpawnkill(playerid)
{
SetPlayerHealth(playerid, 100.0);
return 1;
}
C:\Users\Bichan\Desktop\UKTDM\gamemodes\UKTDM.pwn(466) : error 055: start of function body without function header
C:\Users\Bichan\Desktop\UKTDM\gamemodes\UKTDM.pwn(467) : error 021: symbol already defined: "SetPlayerHealthEx"
C:\Users\Bichan\Desktop\UKTDM\gamemodes\UKTDM.pwn(469) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid, 100000.0);
SetTimerEx("AntiSpawnkill",5000,0,"i",playerid);
return 1;
}
forward AntiSpawnkill(playerid);
public AntiSpawnkill(playerid)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health == 100000.0)
{
SetPlayerHealth(playerid, 100.0);
}
return 1;
}
|
pawn Код:
|
|
pawn Код:
|
C:\Users\Bichan\Desktop\UKTDM\gamemodes\UKTDM.pwn(467) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
{
SetPlayerHealth(playerid, 100000.0);
SetTimerEx("AntiSpawnkill",5000,0,"i",playerid);
return 1;
}
PlayerPlaySound(playerid, 1184, 0.0, 0.0, 0.0);
GangZoneShowForAll(GZ_ZONE1, 0x80FFFF96);
GangZoneShowForAll(GZ_ZONE2, 0x80FF803E);
GangZoneShowForAll(GZ_ZONE3, 0xFF00003E);
GangZoneShowForAll(GZ_ZONE4, 0x0000A03E);
GangZoneShowForAll(GZ_ZONE5, 0x8000803E);
return 1;
}
{
SetPlayerHealth(playerid, 100000.0);
SetTimerEx("AntiSpawnkill",5000,0,"i",playerid);
PlayerPlaySound(playerid, 1184, 0.0, 0.0, 0.0);
GangZoneShowForAll(GZ_ZONE1, 0x80FFFF96);
GangZoneShowForAll(GZ_ZONE2, 0x80FF803E);
GangZoneShowForAll(GZ_ZONE3, 0xFF00003E);
GangZoneShowForAll(GZ_ZONE4, 0x0000A03E);
GangZoneShowForAll(GZ_ZONE5, 0x8000803E);
return 1;
}