19.04.2016, 15:01
Hello !
I am receiving these errors in server_logs.cfg and my server is restarting then...
Line 13921:
on
Line 17901:
on
Line 71 from OPA.inc is
on
What's wrong? Thank you !
I am receiving these errors in server_logs.cfg and my server is restarting then...
Код HTML:
:18] [debug] #0 000b55d8 in public IsPlayerInTurf (playerid=32, turfid=43) at D:\gv.pwn:13921 [17:35:18] [debug] #1 000efb50 in public AB_OnPlayerDeath (playerid=32, killerid=22, reason=24) at D:\gv.pwn:17901 [17:35:18] [debug] #2 0001fb64 in public OnPlayerDeath (playerid=32, killerid=22, reason=24) at D:\pawno\include\OPA.inc:71
Код HTML:
if(x >= TurfInfo[turfid][zMinX] && x < TurfInfo[turfid][zMaxX] && y >= TurfInfo[turfid][zMinY] && y < TurfInfo[turfid][zMaxY])
Код HTML:
public IsPlayerInTurf(playerid, turfid)
{
if(IsPlayerConnected(playerid))
{
if(turfid == -1)
{
return 0;
}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
if(x >= TurfInfo[turfid][zMinX] && x < TurfInfo[turfid][zMaxX] && y >= TurfInfo[turfid][zMinY] && y < TurfInfo[turfid][zMaxY])
{
return 1;
}
}
return 0;
}
Код HTML:
if(IsPlayerInTurf(playerid, i))
Код HTML:
for(new i = 0; i <= sizeof(TurfInfo); i++)
{
if(IsPlayerInTurf(playerid, i))
{
new string[256];
if(WarInfo[i][wTime] > 0)
{if(i == i)
{
if(PlayerData[playerid][pGroup] == WarInfo[i][wAttacker] && PlayerData[killerid][pGroup] == WarInfo[i][wFaction])
{
groupVariables[WarInfo[i][wFaction]][gScore] += 1;
PlayerData[killerid][pWarScore] += 1;
format(string, sizeof(string), "You have killed %s (%i).", PlayerData[playerid][pNormalName], playerid);
SCM(killerid, COLOR_GENANNOUNCE, string);
foreach(Player, x)
{
if(PlayerData[x][pGroup] == WarInfo[i][wAttacker] || PlayerData[x][pGroup] == WarInfo[i][wFaction])
{
SendDeathMessageToPlayer(x, killerid, playerid, reason);
}
}
foreach(Player, x)
{
if(PlayerData[x][pGroup] == WarInfo[i][wAttacker] || PlayerData[x][pGroup] == WarInfo[i][wFaction])
{
SendDeathMessageToPlayer(x, killerid, playerid, reason);
}
}
SCM(playerid, COLOR_LIGHTBLUE, "You will be spawned in the HQ.");
}
else if(PlayerData[killerid][pGroup] == WarInfo[i][wAttacker] && PlayerData[playerid][pGroup] == WarInfo[i][wFaction])
{
PlayerData[playerid][pWarDeaths] += 1;
format(string, sizeof(string), "You have been killed by %s (%i).", PlayerData[killerid][pNormalName], killerid);
SCM(playerid, COLOR_GENANNOUNCE, string);
groupVariables[WarInfo[i][wAttacker]][gScore] += 1;
PlayerData[killerid][pWarScore] += 1;
format(string, sizeof(string), "You have killed %s (%i).", PlayerData[playerid][pNormalName], playerid);
SCM(killerid, COLOR_GENANNOUNCE, string);
foreach(Player, x)
{
if(PlayerData[x][pGroup] == WarInfo[i][wAttacker] || PlayerData[x][pGroup] == WarInfo[i][wFaction])
{
SendDeathMessageToPlayer(x, killerid, playerid, reason);
}
}
SCM(playerid, COLOR_LIGHTBLUE, "You will be respawned.");
}
}
}
Код HTML:
return 1;
Код HTML:
public OnPlayerDeath(playerid, killerid, reason) { g_abLastTick[playerid] = gettime() + 3; #if defined AB_OnPlayerDeath AB_OnPlayerDeath(playerid, killerid, reason); #endif return 1; }