GameTextForPlayer doesn't appear -
Ananisiki - 21.02.2014
pawn Код:
if(pickupid == RPCEnterPickup)
{
SetPlayerPos(playerid, 963.4501,-53.2020,1001.1246);
SetPlayerInterior(playerid, 3);
GameTextForPlayer(playerid, "~p~Welcome ~w~To ~r~The Club~w~.", 2, 3500);
}
if(pickupid == RPCExitPickup)
{
SetPlayerPos(playerid, 2127.5215,2373.2583,10.8203);
SetPlayerInterior(playerid, 0);
GameTextForPlayer(playerid, "w~You Have ~r~Exited ~p~The Club~w~.", 2, 3500);
}
Also, The RPCEnterPickup is a small arrow pickup,
The RPCExitPickup is bigger, is it because it is in a interior? How can I make it the same size as the first one?
Re: GameTextForPlayer doesn't appear -
Aerotactics - 21.02.2014
GameTextForPlayer(playerid,"Welcome to San Fierro",2000,5);
I think you got your time and text style backwards
Taken from:
https://sampforum.blast.hk/showthread.php?tid=191403
Re: GameTextForPlayer doesn't appear -
Ananisiki - 21.02.2014
Oh.. My bad.....
I have another question, do I really need to do this?
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup_armour)
{
SetPlayerArmour(playerid, 100);
}
if(pickupid == pickup_health)
{
SetPlayerHealth(playerid, 100);
}
if(pickupid == pickup_armour)
{
SetPlayerArmour(playerid, 100);
}
if (pickupid == pickup_armour)
{
SetPlayerArmour(playerid, 100);
}
if(pickupid == pickup_armour)
{
SetPlayerArmour(playerid, 100);
}
if(pickupid == pickup_armour)
{
SetPlayerArmour(playerid, 100);
}
if(pickupid == pickup_health)
{
SetPlayerHealth(playerid, 100);
}
if(pickupid == pickup_armour)
{
SetPlayerArmour(playerid, 100);
}
if(pickupid == pickup_money)
Re: GameTextForPlayer doesn't appear -
Vanter - 21.02.2014
why are you repeating the same pickup condition?
Re: GameTextForPlayer doesn't appear -
Ananisiki - 21.02.2014
I have money / armour / health pickups at different places, thats why, do I just have to type it once?
Re: GameTextForPlayer doesn't appear -
Aerotactics - 21.02.2014
Quote:
Originally Posted by Ananisiki
I have money / armour / health pickups at different places, thats why, do I just have to type it once?
|
Yes
Because they all use the same variable.
Re: GameTextForPlayer doesn't appear -
Ananisiki - 21.02.2014
Thanks but why is one pickup bigger than the other one?
Re: GameTextForPlayer doesn't appear -
Aerotactics - 21.02.2014
Quote:
Originally Posted by Ananisiki
Thanks but why is one pickup bigger than the other one?
|
I've heard some reports of this in other situations, are you on 0.3z? It could be a bug in the update.
Re: GameTextForPlayer doesn't appear -
Ananisiki - 21.02.2014
Yes i am,
i have another question,
when i enter this club place, the angle don't look straight, it lookes to the right, so I tried to do SetPlayerFacingAngle(playerid, 90); (because North on the minimap is located to the right) but its still the same..
Re: GameTextForPlayer doesn't appear -
itsCody - 21.02.2014
Quote:
Originally Posted by Ananisiki
Oh.. My bad.....
I have another question, do I really need to do this?
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickup_armour) { SetPlayerArmour(playerid, 100); } if(pickupid == pickup_health) { SetPlayerHealth(playerid, 100); } if(pickupid == pickup_armour) { SetPlayerArmour(playerid, 100); } if (pickupid == pickup_armour) { SetPlayerArmour(playerid, 100); } if(pickupid == pickup_armour) { SetPlayerArmour(playerid, 100); } if(pickupid == pickup_armour) { SetPlayerArmour(playerid, 100); } if(pickupid == pickup_health) { SetPlayerHealth(playerid, 100); } if(pickupid == pickup_armour) { SetPlayerArmour(playerid, 100); } if(pickupid == pickup_money)
|
You don't need all them
just put em once and they should work