Novo em Pawn, erro com Pickup de teleporte
#1

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == NovoPickup)
GameTextForPlayer(playerid,"~w~Saida da ~b~DP");
SetPlayerPos(playerid, 1546.56,-1675.66,13.56);
SetPlayerInterior(playerid, 0);
return 1;

if(pickupid == PickupDp)
GameTextForPlayer(playerid,"~w~Bemvindo a ~b~DP");
SetPlayerPos(playerid, 246.66,66.98,1003.64);
SetPlayerInterior(playerid, 6);
return 1;
}

As definiзхes de new estгo corretas, o lugar dos checkpoints tambйm. Ambos aparecem, Eu consigo sair da Dp, mais quando eu vou entrar, o Teleport me teleporta pra saida, como se eu tivesse usado o outro Pickup. Ja me certifiquei que o teleporte NГO ESTБ EM CIMA DA PICKUP oposta.
Reply
#2

[code=pawn]
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == NovoPickup)
GameTextForPlayer(playerid,"~w~Saida da ~b~DP");
SetPlayerPos(playerid, 1546.56,-1675.66,13.56);
SetPlayerInterior(playerid, 0);
return 1;
}

if(pickupid == PickupDp)
GameTextForPlayer(playerid,"~w~Bemvindo a ~b~DP");
SetPlayerPos(playerid, 246.66,66.98,1003.64);
SetPlayerInterior(playerid, 6);
return 1;
}//Talvez tenha esse colchete, mas acho que nгo!
}
[/code=pawn]
Reply
#3

Cara, vocк esqueceu uma coisa em "GameTextForPlayer"
Pois os parametros deles sгo : playerid, texto, tempo que vai ficar na tela, e o tipo de letra..

Isso pode estar causando conflito talvez.
Reply
#4

Tenta assim amigo:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == NovoPickup)
GameTextForPlayer(playerid,"~w~Saida da ~b~DP",3000,3);
SetPlayerPos(playerid, 1546.56,-1675.66,13.56);
SetPlayerInterior(playerid, 0);
return 1;

if(pickupid == PickupDp)
GameTextForPlayer(playerid,"~w~Bemvindo a ~b~DP",3000,3);
SetPlayerPos(playerid, 246.66,66.98,1003.64);
SetPlayerInterior(playerid, 6);
return 1;
}
Reply
#5

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == NovoPickup)
    {
        GameTextForPlayer(playerid,"~w~Saida da ~b~DP", 4000, 3);
        SetPlayerPos(playerid, 1546.56,-1675.66,13.56);
        SetPlayerInterior(playerid, 0);
        return 1;
    }

    if(pickupid == PickupDp)
    {        
        GameTextForPlayer(playerid,"~w~Bem vindo a ~b~DP", 4000, 3);
        SetPlayerPos(playerid, 246.66,66.98,1003.64);
        SetPlayerInterior(playerid, 6);
        return 1;
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)