GameTextForPlayer doesnt show up -
MarqueZ92 - 22.06.2009
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.
Re: GameTextForPlayer doesnt show up -
MrPanz - 22.06.2009
Did you actually make a pickup for it?
Quote:
Ex : lawl = CreatePickup(1239,1,etc etc);
|
Re: GameTextForPlayer doesnt show up -
MarqueZ92 - 22.06.2009
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?
Re: GameTextForPlayer doesnt show up -
MrPanz - 22.06.2009
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.
Re: GameTextForPlayer doesnt show up -
MarqueZ92 - 22.06.2009
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.
Re: GameTextForPlayer doesnt show up -
MrPanz - 22.06.2009
Hm...
I dont really see a problem...
Try this maybe : GameTextForPlayer(playerid,"~b~ San Fierro Police Department",5000,3);
Re: GameTextForPlayer doesnt show up -
MarqueZ92 - 22.06.2009
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
Re: GameTextForPlayer doesnt show up -
MrPanz - 22.06.2009
Hm... try to make it a Send Client Message? Or better yet, if there at the icons point,
Ex : If(PlayerToPoint.
Re: GameTextForPlayer doesnt show up -
MarqueZ92 - 22.06.2009
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.
Re: GameTextForPlayer doesnt show up -
MarqueZ92 - 22.06.2009
Nobody can help?