GameTextForPlayer doesnt show up
#1

Hello ya'll. This is my first post in this forum, although if im registered here a longer time :P.

So, my problem is; If i put the following Lines under OnPlayerPickUpPickUp like i saw it in a tutorial, the text does not show up when the Player picks up the Pickup.

Quote:

public OnPlayerPickupPickup(playerid, pickupid)
{
if (pickupid == sfpdenter)
{
GameTextForPlayer(playerid, "~b~ San Fierro Police Department", 5000, 3);
}

if (pickupid == liftA)
{
GameTextForPlayer(playerid, "The Lift. Type /goup to go up", 5000, 3);
}

if (pickupid == liftB)
{
GameTextForPlayer(playerid, "The Lift. Type /godown to go down", 5000, 3);
}

if (pickupid == fbienter)
{
GameTextForPlayer(playerid, "San Fierro Federal Bureau of Investigation", 5000, 3);
}
}

Im not really a great scripter, i just forgot the most things over the years.

Hope you can help me.

GreetZ.
Reply
#2

Did you actually make a pickup for it?

Quote:

Ex : lawl = CreatePickup(1239,1,etc etc);

Reply
#3

Quote:
Originally Posted by MrPanz
Did you actually make a pickup for it?

Quote:

Ex : lawl = CreatePickup(1239,1,etc etc);

Yes, I already done that with OnGameModeInit and New; .

EDIT: Do i have to set the New in the same Order like under OnPlayerPickUpPickUp and OnGameModeInit?
Reply
#4

I dont understand what you mean..


If you made a icon, it would just have to be

new lawl; ( For example )

lawl = CreatePickup(1239,1,etc etc);

OnPlayerPickupPickup etc.
Reply
#5

Quote:
Originally Posted by MrPanz
I dont understand what you mean..


If you made a icon, it would just have to be

new lawl; ( For example )

lawl = CreatePickup(1239,1,etc etc);

OnPlayerPickupPickup etc.
I done it exactly like that, i dont get any errors or something. I see the Pickups, but if i move in and pick it up, the message wont appear.

GameTextForPlayer(playerid, "~b~ San Fierro Police Department", 5000, 3); Doesnt appear then.

Reply
#6

Hm...

I dont really see a problem...


Try this maybe : GameTextForPlayer(playerid,"~b~ San Fierro Police Department",5000,3);
Reply
#7

Quote:
Originally Posted by MrPanz
Hm...

I dont really see a problem...


Try this maybe : GameTextForPlayer(playerid,"~b~ San Fierro Police Department",5000,3);
Didnt work
Reply
#8

Hm... try to make it a Send Client Message? Or better yet, if there at the icons point,


Ex : If(PlayerToPoint.
Reply
#9

Quote:
Originally Posted by MrPanz
Hm... try to make it a Send Client Message? Or better yet, if there at the icons point,


Ex : If(PlayerToPoint.
doesnt work.
Reply
#10

Nobody can help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)