Urgent Help - Pawno Crashing
#1

I recently re-opened by RP server. I re-compiled my script to a newer version, but during compiling with the new Pawno file, The Pawno crashes, the .AMX was created, but when I test it, It was not fully compiled. Is there anyway to fix it?
Reply
#2

hmm the version of includes you used , the plugins , all depends now if you dont update the script properly it will crash ... you need to check either your includes or your script
Reply
#3

Redownload the pawn compiler(by downloading the whole 0.3e pack)
Reply
#4

This could be because of a missing bracket. You could try a bracket counter
Reply
#5

Quote:
Originally Posted by FUNExtreme
Посмотреть сообщение
This could be because of a missing bracket. You could try a bracket counter
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...
Reply
#6

Quote:
Originally Posted by -=Dar[K]Lord=-
Посмотреть сообщение
hmm the version of includes you used , the plugins , all depends now if you dont update the script properly it will crash ... you need to check either your includes or your script
I have updated most of the includes and plugins, e.g. YSI, streamer, all basic stuffs are updated.
Reply
#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
#8

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
Redownload the pawn compiler(by downloading the whole 0.3e pack)
Thats what i did. (:

Anyone can provide these includes and plugins? Maybe mine isn't the latest.
Quote:

#include <a_samp>
#include <streamer>
#include <a_zones>
#include <foreach>
#include <yom_buttons>
#include <djson>
#include <progress>
#include <YSI\y_timers>
#include <ZCMD>
#include <sscanf2>
#include <audio>

Reply
#9

Use [ pawn] [ /pawn] we can't realise if you post it as a quote.
Reply
#10

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
Use [ pawn] [ /pawn] we can't realise if you post it as a quote.
pawn Код:
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


Forum Jump:


Users browsing this thread: 1 Guest(s)