[HELP] Crash
#8

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

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 ....
Reply


Messages In This Thread
[HELP] Crash - by AdytzaSS - 16.04.2014, 18:38
Re: [HELP] Crash - by Konstantinos - 16.04.2014, 18:44
Re: [HELP] Crash - by AdytzaSS - 16.04.2014, 18:48
Re : [HELP] Crash - by S4t3K - 16.04.2014, 18:50
Re: [HELP] Crash - by Konstantinos - 16.04.2014, 18:52
Re: [HELP] Crash - by AdytzaSS - 16.04.2014, 18:55
Re : [HELP] Crash - by S4t3K - 16.04.2014, 18:56
Re: [HELP] Crash - by AdytzaSS - 16.04.2014, 19:03
Re: [HELP] Crash - by Konstantinos - 16.04.2014, 19:10
Re: [HELP] Crash - by AdytzaSS - 16.04.2014, 19:16

Forum Jump:


Users browsing this thread: 3 Guest(s)