GameTextForPlayer doesn't appear
#1

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?
Reply
#2

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

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)
Reply
#4

why are you repeating the same pickup condition?
Reply
#5

I have money / armour / health pickups at different places, thats why, do I just have to type it once?
Reply
#6

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

Thanks but why is one pickup bigger than the other one?
Reply
#8

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.
Reply
#9

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..
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)