Pickup's Gametext wont show up..
#1

pawn Код:
new ITALIANN;
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?
Reply
#2

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
Reply
#3

Instead of:
Код:
if ( pickupid == ITALIANN)
I think you could use:
Код:
if(IsPlayerInRangeOfPoint(playerid, 1.0, -2026.7815,-118.4966,1035.1719))
Reply
#4

Nah chosen, that just makes it more complicated.
Do as Rizard said
Reply
#5

If only anyone could answer my question

converting vehicle spanws into -> createvehicle()

It'll soon be on the second page

Grts Riz
Reply
#6

Quote:
Originally Posted by Rizard
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
I changed it to pickup type '2', now i hear the sound, but still no text.. help?
Reply
#7

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
Reply
#8

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

Reply
#9

Working in a FS?

Can you pls post your full 'OnPlayerPickupPickup' ??

Grts Riz
Reply
#10

Quote:
Originally Posted by Rizard
Working in a FS?

Can you pls post your full 'OnPlayerPickupPickup' ??

Grts Riz
Okay.

http://pawn.pastebin.com/d29835285
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)