Jump to content
  • 0

Problema pickup-uri


AndrewTG01

Question

Problema intalnita (descriere):Am incercat sa fac niste pickup-uri si cand intru in primul , dispare primul pickup si apare al doilea , dar la al doilea dispare dar nu apare al treilea apare tot al doilea.
Ero(area / rile) / warning-(ul / urile): - 
Liniile de cod / sursa / script-ul(obligatoriu): 
if(pickupid == pickuprob1)
	{
        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
        DestroyPickup(pickuprob1);
        GivePlayerMoney(playerid, 100);
        pickuprob2 = CreatePickup(1317, 1, -768.50732, 163.46100, 1311.45032,-1);
	}
	else if(pickupid == pickuprob2)
	{
        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
        DestroyPickup(pickuprob2);
        GivePlayerMoney(playerid, 100);
        pickuprob3 = CreatePickup(1317, 1, -768.41071, 159.51573, 1311.45032,-1);
	}
	else if(pickupid == pickuprob3)
	{
        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
        DestroyPickup(pickuprob3);
        GivePlayerMoney(playerid, 100);
        pickuprob4 = CreatePickup(1317, 1, -773.66333, 159.41650, 1311.45032,-1);
	}
	else if(pickupid == pickuprob4)
	{
        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
        DestroyPickup(pickuprob4);
        GivePlayerMoney(playerid, 100);
        pickuprob5 = CreatePickup(1317, 1, -773.89978, 163.35112, 1311.45032,-1);
	}
	else if(pickupid == pickuprob5)
	{
        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
        DestroyPickup(pickuprob5);
        GivePlayerMoney(playerid, 100);
        SendClientMessage(playerid, COLOR_GREY, "All money collected. Now run!");
	}

Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Am incercat si cu checkpoint-uri dar am citit pe samp wiki ca daca pun checkpoint-uri si cladirea este la inaltime , checkpoint-ul se va pune pe pamant si chiar asa este. 

 

Known Bug: Checkpoints created on server-created objects (CreateObject/CreatePlayerObject) will appear down on the 'real' ground, but will still function correctly. There is no fix available for this issue. A pickup can be used instead.

daca pun doar if-uri , nu se mai leaga pickup-urile intre ele, si nu imi mai apare nici un pickup dupa ce dispare primul.

Link to comment
Share on other sites

  • 0

am incercat si primesc astea : 

error 008: must be a constant expression; assumed zero
error 008: must be a constant expression; assumed zero
error 008: must be a constant expression; assumed zero
error 008: must be a constant expression; assumed zero
error 008: must be a constant expression; assumed zero

 

 

linii: 

case pickuprob1:
		    {
                ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
                DestroyPickup(pickuprob1);
                GivePlayerMoney(playerid, 100);
                pickuprob2 = CreatePickup(1317, 2, -768.50732, 163.46100, 1311.45032,-1);
                pickuprob = 1;
		    }
		    case pickuprob2:
		    {
                ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
                DestroyPickup(pickuprob2);
                GivePlayerMoney(playerid, 100);
                pickuprob3 = CreatePickup(1317, 2, -768.41071, 159.51573, 1311.45032,-1);
                pickuprob = 2;
		    }
		    case pickuprob3:
		    {
                ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
                DestroyPickup(pickuprob3);
                GivePlayerMoney(playerid, 100);
                pickuprob4 = CreatePickup(1317, 2, -773.66333, 159.41650, 1311.45032,-1);
                pickuprob = 3;
		    }
		    case pickuprob4:
		    {
                ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
                DestroyPickup(pickuprob4);
                GivePlayerMoney(playerid, 100);
                pickuprob5 = CreatePickup(1317, 2, -773.89978, 163.35112, 1311.45032,-1);
                pickuprob = 4;
		    }
	    	case pickuprob5:
		    {
                ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
                DestroyPickup(pickuprob5);
                pickuprob = 5;
                PlayerInfo[playerid][pRobPoints] = 0;
                GivePlayerMoney(playerid, 100);
                WantedLevel[playerid] = 6;
                WantedPoints[playerid] += 6;
                SetPlayerWantedLevel(playerid, 6);
                SetPlayerCriminal(playerid,255, "Bank robbery");
                SendClientMessage(playerid, 0xFFD8D8D8, "ROB: All money collected. Now run!");
	    	}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.