SA-MP Forums Archive
Pickup error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pickup error (/showthread.php?tid=277913)



Pickup error - Rabbayazza - 19.08.2011

Код:
new nlive;
Код:
nlive = CreatePickup(1239, 23, 365.5620,174.0066,1025.7891);
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == nlive)
        {
        GameTextForPlayer(playerid,"~w~ /lg ~y~ to participate", 3000, 0);
        }
    return 1;
}
This pickup doesn't appear, can someone tell me why?


Re: Pickup error - sleepysnowflake - 19.08.2011

Spot the difference!
pawn Код:
nlive = CreatePickup(1239, 23, 365.5620,174.0066,1025.7891, 0); // fixed
nlive = CreatePickup(1239, 23, 365.5620,174.0066,1025.7891); // your
https://sampwiki.blast.hk/wiki/CreatePickup

Be sure you put the coordiantes good tho. You did not put the VW


Re: Pickup error - Rabbayazza - 19.08.2011

It still doesn't appear.


Re: Pickup error - FireCat - 19.08.2011

Quote:
Originally Posted by Berlovan
Посмотреть сообщение
Spot the difference!
pawn Код:
nlive = CreatePickup(1239, 23, 365.5620,174.0066,1025.7891, 0); // fixed
nlive = CreatePickup(1239, 23, 365.5620,174.0066,1025.7891); // your
https://sampwiki.blast.hk/wiki/CreatePickup

Be sure you put the coordiantes good tho. You did not put the VW
Quote:
Originally Posted by Rabbayazza
Посмотреть сообщение
It still doesn't appear.
pawn Код:
nlive = CreatePickup(1239, 23, 365.5620,174.0066,1025.7891, 0); // berlovan
nlive = CreatePickup(1239, 23, 365.5620,174.0066,1025.7891); // your
nlive = CreatePickup(1239, 23, 365.5620,174.0066,1025.7891, -1); // mine
But it still should work with berlovan's one :/


Re: Pickup error - sleepysnowflake - 19.08.2011

Are you sure the coordinates are good ? Go in-game and do /save adn get the coordinates!


Re: Pickup error - Rabbayazza - 19.08.2011

Still doesn't appear, can it have anything to do with it being in an interior?