Auto kill after 15 sec
#6

Edited:

pawn Код:
new pKill[MAX_PLAYERS];
new pCount[MAX_PLAYERS];

if(IsPlayerInArea(playerid, 997, 917, 2046, 2182))
{
    if(!IsPlayerAdmin(playerid))
    {
        pKill[playerid] = SetTimerEx("KillTime", 15000, false, "i", playerid);
    }
    return 1;
}
else if(!IsPlayerInArea(playerid, 997, 917, 2046, 2182))
{
    KillTimer(pKill(playerid));
    pCount[playerid] = 15;
    return 1;
}

forward KillTime(playerid);
public KillTime(playerid)
{
    pCount[playerid]--;
    if(pCount > 15)
    {
        SetPlayerHealth(playerid, 0.0);
        pCount[playerid] = 15;
    }
}

It got 11 Error's

pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(1) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(2) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(2) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(4) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(6) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(10) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(12) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(14) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(14 -- 16) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(23) : error 033: array must be indexed (variable "pCount")
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(25) : error 017: undefined symbol "SetPlayerHealth"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(29) : warning 203: symbol is never used: "KillTimer"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(29) : warning 203: symbol is never used: "pKill"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


11 Errors.
Reply


Messages In This Thread
Auto kill after 15 sec - by Larsey123IsMe - 08.11.2010, 16:35
Re: Auto kill after 15 sec - by Cameltoe - 08.11.2010, 16:37
Re: Auto kill after 15 sec - by Larsey123IsMe - 08.11.2010, 16:40
Re: Auto kill after 15 sec - by Cameltoe - 08.11.2010, 16:45
Re: Auto kill after 15 sec - by The_Moddler - 08.11.2010, 16:47
Re: Auto kill after 15 sec - by Larsey123IsMe - 08.11.2010, 17:03
Re: Auto kill after 15 sec - by Cameltoe - 08.11.2010, 17:04
Re: Auto kill after 15 sec - by Larsey123IsMe - 08.11.2010, 17:10
Re: Auto kill after 15 sec - by Cameltoe - 08.11.2010, 17:16
Re: Auto kill after 15 sec - by Larsey123IsMe - 08.11.2010, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)