Pickups.. - 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: Pickups.. (
/showthread.php?tid=169026)
Pickups.. -
Luis- - 18.08.2010
Hi, I was wondering what would I use to make it so when a player walks in to a Pickup how could I set it so some text's come on to there screen?
Re: Pickups.. - [L3th4l] - 18.08.2010
pawn Код:
OnPlayerPickup
if(pickupd = YOURPICKUP)
{
/*send message*/
}
Re: Pickups.. -
PotH3Ad - 18.08.2010
https://sampwiki.blast.hk/wiki/AddStaticPickup
pawn Код:
new TextPickup;
public OnGameModeInit()
{
TextPickup = AddStaticPickup(400, 2, 0.0, 0.0, 0.0, 0);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == TextPickup)
{
SendClientMessage(playerid, 0xFAFAFAF, "Your Text Here");
}
return 1;
}
Re: Pickups.. -
Luis- - 18.08.2010
@Lethal I get these warnings...
Код:
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(201) : warning 211: possibly unintended assignment
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(205) : warning 211: possibly unintended assignment
Re: Pickups.. -
PotH3Ad - 18.08.2010
The code I posted shouldn't give errors..
Re: Pickups.. -
Sky4D - 18.08.2010
Quote:
Originally Posted by Luis the Lobster
@Lethal I get these warnings...
Код:
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(201) : warning 211: possibly unintended assignment
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(205) : warning 211: possibly unintended assignment
|
What is line 201? Pothead's script should not give you errors.
Re: Pickups.. -
Luis- - 18.08.2010
It didn't thank you
Re: Pickups.. -
RoBo - 18.08.2010
Quote:
Originally Posted by PotH3Ad
|
Umm did you actually look at what AddStaticPickup returns?