Pickup's Gametext wont show up.. - 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's Gametext wont show up.. (
/showthread.php?tid=128515)
Pickup's Gametext wont show up.. -
ДitisOnHuora - 18.02.2010
pawn Код:
if ( pickupid == ITALIANN)
{
GameTextForPlayer(playerid, "~w~ Type ~r~ /plapla ~w~ plaplaplapla", 5000, 5);
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
return 1;
}
pawn Код:
ITALIANN = CreatePickup(1239,1 , -2026.7815,-118.4966,1035.1719, -1);
Why?
Re: Pickup's Gametext wont show up.. -
Rizard - 18.02.2010
I believe you are using the wrong pickup type.
Here is a list off pickup types to use
https://sampwiki.blast.hk/wiki/PickupTypes
yours atm is '1' wich is not pickupable...
Grts Riz
Re: Pickup's Gametext wont show up.. -
chosen - 18.02.2010
Instead of:
Код:
if ( pickupid == ITALIANN)
I think you could use:
Код:
if(IsPlayerInRangeOfPoint(playerid, 1.0, -2026.7815,-118.4966,1035.1719))
Re: Pickup's Gametext wont show up.. -
Rzzr - 18.02.2010
Nah chosen, that just makes it more complicated.
Do as Rizard said
Re: Pickup's Gametext wont show up.. -
Rizard - 18.02.2010
If only anyone could answer my question
converting vehicle spanws into -> createvehicle()
It'll soon be on the second page
Grts Riz
Re: Pickup's Gametext wont show up.. -
ДitisOnHuora - 18.02.2010
Quote:
Originally Posted by Rizard
|
I changed it to pickup type '2', now i hear the sound, but still no text.. help?
Re: Pickup's Gametext wont show up.. -
Rizard - 18.02.2010
Put 'just for testing' a
SendClientMessage(playerid,0xFF0000FF,"this is shown");
just before the gametext... if that doesn't work I'm asuming you are having conflicts with fs.... not returning 1; etc...
can you post whole your 'OnPlayerPickupPickup()' pls?
Grts Riz
Re: Pickup's Gametext wont show up.. -
ДitisOnHuora - 18.02.2010
Quote:
Originally Posted by Rizard
Put 'just for testing' a
SendClientMessage(playerid,0xFF0000FF,"this is shown");
just before the gametext... if that doesn't work I'm asuming you are having conflicts with fs.... not returning 1; etc...
can you post whole your 'OnPlayerPickupPickup()' pls?
Grts Riz
|
I tried that, didnt send the client message.. :S
Re: Pickup's Gametext wont show up.. -
Rizard - 18.02.2010
Working in a FS?
Can you pls post your full 'OnPlayerPickupPickup' ??
Grts Riz
Re: Pickup's Gametext wont show up.. -
ДitisOnHuora - 18.02.2010
Quote:
Originally Posted by Rizard
Working in a FS?
Can you pls post your full 'OnPlayerPickupPickup' ??
Grts Riz
|
Okay.
http://pawn.pastebin.com/d29835285