16.04.2014, 19:03
I have another question
That function is used at every takezone and just for exepmple today were 2 takezone and the server dosen't crash .... at 22 when he crash it wasn't any takezone .....
But in PlayerSpawn( appear in that log ) i have
Can sometime crash the server and sometime no ?
SaveZones() is used just when a takezone is finished and on playerspawn ....
That function is used at every takezone and just for exepmple today were 2 takezone and the server dosen't crash .... at 22 when he crash it wasn't any takezone .....
But in PlayerSpawn( appear in that log ) i have
pawn Код:
for(new i=0; i < sizeof(ZoneInfo); i++)
{
new leadername[MAX_PLAYER_NAME];
GetPlayerName(playerid,leadername,128);
if(togzones[playerid] == 1)
{
GangZoneShowForPlayer(playerid, Zones[i], GetTeamZoneColor(ZoneInfo[i][zTeam]));
if(ZoneInfo[i][zTakeOn] == 1 && takezone == 1) GangZoneFlashForPlayer(playerid, i, COLOR_RED);
SetTimer("ShowZones",3000,0);
}
if(PlayerInfo[playerid][pLeader]==12 && ZoneInfo[i][zTeam] == 12)
{
strmid(ZoneInfo[i][zOwner],leadername,0,strlen(leadername),255);
SaveZones();
}
else if(PlayerInfo[playerid][pLeader]==13 && ZoneInfo[i][zTeam] == 13)
{
strmid(ZoneInfo[i][zOwner],leadername,0,strlen(leadername),255);
SaveZones();
}
else if(PlayerInfo[playerid][pLeader]==14 && ZoneInfo[i][zTeam] == 14)
{
strmid(ZoneInfo[i][zOwner],leadername,0,strlen(leadername),255);
SaveZones();
}
else if(PlayerInfo[playerid][pLeader]==15 && ZoneInfo[i][zTeam] == 15)
{
strmid(ZoneInfo[i][zOwner],leadername,0,strlen(leadername),255);
SaveZones();
}
else if(PlayerInfo[playerid][pLeader]==16 && ZoneInfo[i][zTeam] == 16)
{
strmid(ZoneInfo[i][zOwner],leadername,0,strlen(leadername),255);
SaveZones();
}
else if(PlayerInfo[playerid][pLeader]==17 && ZoneInfo[i][zTeam] == 17)
{
strmid(ZoneInfo[i][zOwner],leadername,0,strlen(leadername),255);
SaveZones();
}
}
Can sometime crash the server and sometime no ?
SaveZones() is used just when a takezone is finished and on playerspawn ....