Checkpoint not working
#3

Nah, that's not it. I changed the code and it's still not working. I even tried creating it at 0, 0, 0 but nothing.

pawn Код:
if(pRouteStatus[playerid] == 1) // If the player is at loading point
    {
        DisablePlayerCheckpoint(playerid);
        pRouteStatus[playerid] = 2;
        new Float:X, Float:Y, Float:Z;
       
        X = sbInfo[pFactoryID[playerid]][ENX];
        Y = sbInfo[pFactoryID[playerid]][ENY];
        Z = sbInfo[pFactoryID[playerid]][ENZ];
       
        SetPlayerCheckpoint(playerid, 0, 0, 0, 5.0); // 0 0 0 is for test - not working either
        return SendClientMessage(playerid, COLOR_WHITE, "[FACTORY:] Head to the weapons factory unload point to deliver materials. Type /cancelmission to cancel the mission."); // This message shows
    }
   
    if(pRouteStatus[playerid] == 2) // If the player is at the weapons factory, at the unload point - haven't tested it because the checkpoint in the first part of the code never shows up.
    {
        DisablePlayerCheckpoint(playerid);
        pRouteStatus[playerid] = 0;
        sbInfo[pFactoryID[playerid]][WeaponParts] += pMaterials[playerid];
       
        new string[150]; format(string, 150, "[FACTORY:] %i materials delivered to the factory. Total materials: %i. Type /checkmats to check the materials amount.", pMaterials[playerid], sbInfo[pFactoryID[playerid]][WeaponParts]);
        pMaterials[playerid] = 0;
        pFactoryID[playerid] = -1;
        return SendClientMessage(playerid, COLOR_WHITE, string);   
    }
Reply


Messages In This Thread
Checkpoint not working - by Gerira Gaijin - 11.03.2012, 13:21
Re: Checkpoint not working - by eesh - 11.03.2012, 13:55
Re: Checkpoint not working - by Gerira Gaijin - 11.03.2012, 14:13
Re: Checkpoint not working - by eesh - 11.03.2012, 14:17
Re: Checkpoint not working - by Gerira Gaijin - 11.03.2012, 14:21
Re: Checkpoint not working - by eesh - 11.03.2012, 14:24
Re: Checkpoint not working - by Gerira Gaijin - 11.03.2012, 22:31

Forum Jump:


Users browsing this thread: 2 Guest(s)