[Ajuda] Pickups
#1

Olб, Entгo eu comecei criar alguns pickups de interiores para meu server.
Mais agora nenhum pega. Apenas o ъltimo que fiz funciona. Gostaria de sabe porque os outros nгo pegam? Apenas o ъltimo do CODE
Apenas o AMMUNATION TRAINEMENTO DE TIROS consigo entrar.

(Sou iniciante em pawn entгo se tiver alguma burrada erra legal huehue)


Cуdigos abaixo.

pawn Код:
//INTERIOR HOSPITAL ENTRADA
    EntradaPickup = CreatePickup(1240, 23, -2204.0813,-2309.5730,31.3750, -1);
    SaidaPickup = CreatePickup(0, 23, 295.0892,1898.9138,499.2859, -1);
    Create3DTextLabel("Medical Center - Angel Pine", 0xFFFFFFFF, -2204.0813,-2309.5730,31.3750, 20.0, 0, 0);
   
    //INTERIOR BANCO ENTRADA
    EntradaPickup = CreatePickup(1274, 23, -2079.3372,-2447.9397,30.6250, -1);
    SaidaPickup = CreatePickup(0, 23, 402.7873,2778.6738,86.3559, -1);
    Create3DTextLabel("Bank Star - Angel Pine", 0xFFFFFFFF, -2079.3372,-2447.9397,30.6250, 20.0, 0, 0);
   
    //INTERIOR DELEGACIA ENTRADA
    EntradaPickup = CreatePickup(1247, 23, -2161.3645,-2384.7646,30.8966, -1);
    SaidaPickup = CreatePickup(0, 23, 322.197998,302.497985,999.148437, -1);
    Create3DTextLabel("Sheriff - Angel Pine", 0xFFFFFFFF, -2161.3645,-2384.7646,30.8966, 20.0, 0, 0);

    //INTERIOR AMMUNATION ENTRADA
    EntradaPickup = CreatePickup(1242, 23, -2093.4939,-2465.0808,30.6250, -1);
    SaidaPickup = CreatePickup(0, 23, 286.800994,-82.547599,1001.515625, -1);
    Create3DTextLabel("Ammunation - Angel Pine", 0xFFFFFFFF, -2093.4939,-2465.0808,30.6250, 20.0, 0, 0);

    //INTERIOR AMMUNATION TRAINEMENTO DE TIROS
    EntradaPickup = CreatePickup(0, 23, 301.6680,-76.5795,1001.5156, -1);
    SaidaPickup = CreatePickup(0, 23, 302.292877,-143.139099,1004.062500, -1);
    Create3DTextLabel("Treinamento de tiros\nIsso custa R$50,00 a hora", 0xFFFFFFFF, 301.6680,-76.5795,1001.5156, 20.0, 0, 0);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
        //HOSPITAL
    if(pickupid == EntradaPickup)
        {
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, 294.7384,1895.9478,499.2859);
            }
    if(pickupid == SaidaPickup)
        {
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, -2201.2285,-2307.6748,30.6250);
            }
        //BANCO
    if(pickupid == EntradaPickup)
        {
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, 405.6638,2777.9626,86.3559);
            }
    if(pickupid == SaidaPickup)
        {
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, -2082.9561,-2452.7773,30.6250);
            }
        //DELEGACIA
    if(pickupid == EntradaPickup)
        {
  SetPlayerInterior(playerid, 5);
  SetPlayerPos(playerid, 322.197998,302.497985,999.148437);
            }
    if(pickupid == SaidaPickup)
        {
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, -2164.9839,-2389.5532,30.4688);
            }
        //AMMUNATION
    if(pickupid == EntradaPickup)
        {
  SetPlayerInterior(playerid, 4);
  SetPlayerPos(playerid, 286.800994,-82.547599,1001.515625);
            }
    if(pickupid == SaidaPickup)
        {
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, -2091.4072,-2461.8989,30.6250);
            }
        //AMMUNATION TREINAMENTO DE TIROS
    if(pickupid == EntradaPickup)
        {
  SetPlayerInterior(playerid, 4);
  SetPlayerPos(playerid, 302.292877,-143.139099,1004.062500);
            }
    if(pickupid == SaidaPickup)
        {
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, 301.6680,-76.5795,1001.5156);
   }

    return 1;
}
Reply
#2

Vc n atingiu o nmero mбximo de PickUps ?
Reply
#3

Quote:
Originally Posted by [THs]ShadoW
Посмотреть сообщение
Vc n atingiu o nmero mбximo de PickUps ?
Shadow entгo eu nгo sei como funciona isso. Mais tem apenas 5 pickups. Jб vi servidores com mais de 10 pickups ou outro negocio parecido com pickups
Reply
#4

Vocк colocou todos pickup com a mesma variбvel...

Coloque tipo assim:
pawn Код:
EntradaPickupHospital = ...
SaidaPickupHospital = ...
Reply
#5

Obrigado, resolvido!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)