Unreachable code
#4

Return only at the end, or where you want to finalize the code scope.

PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    if((
MilitarJob[playerid] == 1) && (pInfo[playerid][pSkin] == 287))
    {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid2741.6865,-1504.8694,30.90645.0);
        
AddSlotToInventoryWorld(playerid,"Sticla de Apa Plina",1);
        
SendClientMessage(playerid, -1"{FFCC33}Ai primit {FF0000}Sticla de Apa Plina {FFCC33}pentru primul transport al gunoiului!");
        
MilitarJob[playerid] = 2;
    }
    if(
MilitarJob[playerid] == 2)
    {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid2703.7903,-1065.6555,69.82325.0);
        
GivePlayerMoney(playerid4321);
        
SendClientMessage(playerid, -1"{FFCC33}Ai primit {FF0000}4321 $ {FFCC33}pentru al doilea transport al gunoiului!");
        
MilitarJob[playerid] = 3;
    }
    return 
1;

Reply


Messages In This Thread
Unreachable code - by Zeus666 - 19.03.2018, 18:12
Re: Unreachable code - by rolex - 19.03.2018, 18:16
Re: Unreachable code - by Zeus666 - 19.03.2018, 18:25
Re: Unreachable code - by rolex - 19.03.2018, 18:27
Re: Unreachable code - by Zeus666 - 19.03.2018, 18:30
Re: Unreachable code - by rolex - 19.03.2018, 18:50

Forum Jump:


Users browsing this thread: 1 Guest(s)