Urgent Help - Pawno Crashing
#7

Quote:
Originally Posted by FUNExtreme
Посмотреть сообщение
This could be because of a missing bracket. You could try a bracket counter
Quote:
Originally Posted by -=Dar[K]Lord=-
Посмотреть сообщение
i think he had opened it last time and he had got no errors if there is a missing bracket we normally get errors . Yea i think because it is a big script it might have crashed...
I use Bracket Fix and found that there are bracket errors, but on script, there's no error.

Check this:
Quote:

SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
if(GetPVarInt(playerid, "IsInArena") >= 0)
{
new arenaid = GetPVarInt(playerid, "IsInArena");
if(PaintBallArena[arenaid][pbGameType] == 2 || PaintBallArena[arenaid][pbGameType] == 3 || PaintBallArena[arenaid][pbGameType] == 5)
{
switch(PlayerInfo[playerid][pPaintTeam])
{
case 1: // Red Team
{
SetPlayerColor(playerid, PAINTBALL_TEAM_RED);
}
case 2: // Blue Team
{
SetPlayerColor(playerid, PAINTBALL_TEAM_BLUE);
}
}
return 1;
}
}
if(PlayerInfo[playerid][pJailed] == 2)
{
SetPlayerColor(playerid,TEAM_ORANGE_COLOR);
return 1;
}
else if(PlayerInfo[playerid][pJailed] == 4)
{
SetPlayerColor(playerid,TEAM_APRISON_COLOR);
return 1;
}
else
{
SetPlayerColor(playerid,TEAM_HIT_COLOR);
}
if(IsACop(playerid))
{
if(PlayerInfo[playerid][pDuty] == 1)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerColor(playerid,TEAM_BLUE_COLOR);
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
SetPlayerColor(playerid,TEAM_FBI_COLOR);
}
else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerColor(playerid, TEAM_SFPD);
}
else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
SetPlayerColor(playerid, TEAM_SASD);
}
else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
SetPlayerColor(playerid,COLOR_NG);
}
else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
SetPlayerColor(playerid,COLOR_NOOSE);
}
else
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
}
}
else
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
}
}
else
{
if((PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) && PlayerInfo[playerid][pDuty] == 1)
{
SetPlayerColor(playerid,TEAM_NEWS_COLOR);
}
else if((PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pJob2] == 17 || PlayerInfo[playerid][pTaxiLicense] == 1) && TransportDuty[playerid] != 0)
{
SetPlayerColor(playerid,TEAM_TAXI_COLOR);
}
else if((PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) && PlayerInfo[playerid][pDuty] == 1)
{
SetPlayerColor(playerid, TEAM_MED_COLOR);
}
else if((PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) && PlayerInfo[playerid][pDuty] == 1)
{
SetPlayerColor(playerid, COLOR_TR);
}
else
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
}
if(PlayerInfo[playerid][pWantedLevel] > 0)
{
//SetPlayerColor(playerid,WANTED_COLOR);
WantedPoints[playerid] = PlayerInfo[playerid][pWantedLevel];
SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
}
}
}
return 1;
}

Reply


Messages In This Thread
Urgent Help - Pawno Crashing - by shauncyq - 23.01.2013, 12:54
Re: Urgent Help - Pawno Crashing - by -=Dar[K]Lord=- - 23.01.2013, 12:56
Re: Urgent Help - Pawno Crashing - by DiGiTaL_AnGeL - 23.01.2013, 12:56
Re: Urgent Help - Pawno Crashing - by FUNExtreme - 23.01.2013, 12:59
Re: Urgent Help - Pawno Crashing - by -=Dar[K]Lord=- - 23.01.2013, 13:00
Re: Urgent Help - Pawno Crashing - by shauncyq - 23.01.2013, 13:13
Re: Urgent Help - Pawno Crashing - by shauncyq - 23.01.2013, 13:15
Re: Urgent Help - Pawno Crashing - by shauncyq - 23.01.2013, 13:17
Re: Urgent Help - Pawno Crashing - by DiGiTaL_AnGeL - 23.01.2013, 13:19
Re: Urgent Help - Pawno Crashing - by shauncyq - 23.01.2013, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)