08.11.2010, 17:10
I forgot that. (now added) but i still got some error:
Whole Scrip i got:
Error:
Whole Scrip i got:
pawn Код:
#include <a_samp>
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;
}
}
pawn Код:
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(8) : 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(18) : error 010: invalid function or declaration
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(25) : error 033: array must be indexed (variable "pCount")
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\KillInArea.pwn(31) : warning 203: symbol is never used: "pKill"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.