Pickup problem
#6

Quote:
Originally Posted by TheXIII
Посмотреть сообщение
Try the code I posted instead. AND operator doesn't work like that.
yea I fu***d that code lol
didnt check just wrote what was on my mind at first
EDIT:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == hiddenpackage)
    {
        created[playerid] = 0;
        SendClientMessage(playerid, yellow, "Congratulations! You have found a Hidden Package!");
        GameTextForAll("~r~Hidden Package ~b~has been found!", 5000, 4);
        DestroyPickup(hiddenpackage);
    }
    else if(pickupid == infopickup1)
       {
               SendClientMessage(playerid,yellow,"Text 1");
       }
    else if(pickupid == infopickup2)
       {
               SendClientMessage(playerid,yellow,"Text 2");
       }
    else if(pickupid == infopickup3)
       {
              SendClientMessage(playerid,yellow,"Text 3");
       }
    else if(pickupid == flowers)
      {
             SendClientMessage(playerid,yellow,"You have found some flowers!");
      }
      return 1;
}
there use this
Reply


Messages In This Thread
Pickup problem - by Libra_PL - 12.11.2010, 08:57
Re: Pickup problem - by HrvojeCro - 12.11.2010, 09:00
Re: Pickup problem - by TheXIII - 12.11.2010, 09:00
Re: Pickup problem - by Libra_PL - 12.11.2010, 09:14
Re: Pickup problem - by TheXIII - 12.11.2010, 09:16
Re: Pickup problem - by HrvojeCro - 12.11.2010, 09:21
Re: Pickup problem - by Libra_PL - 12.11.2010, 09:30

Forum Jump:


Users browsing this thread: 1 Guest(s)