2 problems
#3

I HAVE EDITED THIS:

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == armourpickup)
    {
        SetPlayerArmour(playerid, 100);
        GameTextForPlayer(playerid, "ARMOR NAPUNJEN!", 3000, 5);
    }
    // removed return 1;
   
    else if(pickupid == zatvorpickup)
    {
        GameTextForPlayer(playerid, "Zatvor (/enter)", 3000, 4);
    }
    // removed return 1;
   
    if(pickupid == enterpickup)
    {
        GameTextForPlayer(playerid, "Koristi /enter da udjes", 3000, 4);
    }
    return 1; // Removed return 1;, then added it back because this should return a value
}
This should fix your unreachable code problem

And then:

pawn Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, 1554.7246,-1675.5688,16.1953))//PD
    {
        SetPlayerPos(playerid, 246.40,110.84,1003.22);
        SetPlayerInterior(playerid, 6); // Make sure this interior ID is right! LSPD = 6, LVPD = 3, SFPD = 10
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5, 1455.1255,-1010.9031,26.8438))//BANK
    {
        SetPlayerPos(playerid, 2315.952880,-1.618174,26.742187);
        SetPlayerInterior(playerid, 0); // This interior ID for the palomino bank is correct.
    }
    return 1;
}

//If it's still showing up Gray, then the coordinates are wrong.

CMD:exit(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, 246.40,110.84,1003.22)) //PD
    {
        SetPlayerPos(playerid, 1554.7246,-1675.5688,16.1953);
        SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5, 2315.952880,-1.618174,26.742187)) //BANK
    {
        SetPlayerPos(playerid, 1455.1255,-1010.9031,26.8438);
        SetPlayerInterior(playerid, 0);
    }
    return 1;
}
Reply


Messages In This Thread
2 problems - by Strummer - 18.07.2014, 01:49
Re: 2 problems - by Strummer - 18.07.2014, 02:55
Re: 2 problems - by BornHuman - 18.07.2014, 03:12
Re: 2 problems - by Strummer - 18.07.2014, 03:19
Re: 2 problems - by BornHuman - 18.07.2014, 03:20
Re: 2 problems - by Strummer - 18.07.2014, 03:29
Re: 2 problems - by BornHuman - 18.07.2014, 04:10
Re: 2 problems - by Strummer - 18.07.2014, 04:27
Re: 2 problems - by Strummer - 18.07.2014, 09:30

Forum Jump:


Users browsing this thread: 1 Guest(s)