Crashes when player enters Ammunition.
#1

Ok So when player click Enter to go into a ammunition it crashes the ENTIRE server can someone please help me?
pawn Код:
if(newkeys & KEY_SECONDARY_ATTACK && !IsPlayerInAnyVehicle(playerid)) {

        if(!Player[playerid][bankid]) {

            new bankID = GetBankID(playerid);
            if(bankID == 1234) goto ammucheck;
            if(Zone[bankID][ownedBy] != Player[playerid][team]) return SendClientMessage(playerid, C_RED, "• You can't enter this bank because you're team doesn't control this area!");

            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, Player[playerid][team]);
            SetPlayerPos(playerid, 2305.9534,-16.1007,26.7496);
            Player[playerid][bankid] = bankID;
            SetPlayerCheckpoint(playerid, 2312.6086,-3.8738,26.7422, 1.5);

        } else if(Player[playerid][bankid] != 0 && IsPlayerInRangeOfPoint(playerid, 2.5, 2305.9534,-16.1007,26.7496)) {

            SetPlayerPos(playerid, BankInfo[Player[playerid][bankid]][0], BankInfo[Player[playerid][bankid]][1], BankInfo[Player[playerid][bankid]][2]);
            SetPlayerVirtualWorld(playerid, 0);
            Player[playerid][bankid] = 0;
            DisablePlayerCheckpoint(playerid);
        }
        ammucheck:
        if(!Player[playerid][ammuid]) {

            new ammuID = GetAmmunitionID(playerid);
            if(ammuID == 1234) return 1;
            if(Zone[ammuID][ownedBy] != Player[playerid][team]) return SendClientMessage(playerid, C_RED, "• You can't enter this ammunition because you're team doesn't control this area!");

            SetPlayerInterior(playerid, 1);
            SetPlayerVirtualWorld(playerid, Player[playerid][team]);
            SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
            Player[playerid][ammuid] = ammuID;
            SetPlayerCheckpoint(playerid, 295.3792,-37.7612,1001.5156, 1.5);

        } else if(Player[playerid][ammuid] != 0 && IsPlayerInRangeOfPoint(playerid, 2.5, 286.148986,-40.644397,1001.515625)) {

            SetPlayerPos(playerid, AmmunitionInfo[Player[playerid][ammuid]][0], AmmunitionInfo[Player[playerid][ammuid]][1], AmmunitionInfo[Player[playerid][ammuid]][2]);
            SetPlayerVirtualWorld(playerid, 0);
            SetPlayerInterior(playerid, 0);
            Player[playerid][ammuid] = 0;
            DisablePlayerCheckpoint(playerid);
        }
    }
NO ERRORS!
Reply
#2

The server crash because something is wrong with the Cmd
Reply
#3

It's not a cmd...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)